Commit 228942ef authored by Heiner Kallweit's avatar Heiner Kallweit Committed by Mauro Carvalho Chehab

[media] media: rc: nuvoton: simplify interrupt handling code

Simplify interupt handling code.
Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent e5283f5f
...@@ -906,17 +906,12 @@ static irqreturn_t nvt_cir_isr(int irq, void *data) ...@@ -906,17 +906,12 @@ static irqreturn_t nvt_cir_isr(int irq, void *data)
if (status & CIR_IRSTS_RFO) if (status & CIR_IRSTS_RFO)
nvt_handle_rx_fifo_overrun(nvt); nvt_handle_rx_fifo_overrun(nvt);
if (status & CIR_IRSTS_RTR) { else if (status & (CIR_IRSTS_RTR | CIR_IRSTS_PE)) {
/* We only do rx if not tx'ing */ /* We only do rx if not tx'ing */
if (nvt_cir_tx_inactive(nvt)) if (nvt_cir_tx_inactive(nvt))
nvt_get_rx_ir_data(nvt); nvt_get_rx_ir_data(nvt);
} }
if (status & CIR_IRSTS_PE) {
if (nvt_cir_tx_inactive(nvt))
nvt_get_rx_ir_data(nvt);
}
spin_unlock_irqrestore(&nvt->nvt_lock, flags); spin_unlock_irqrestore(&nvt->nvt_lock, flags);
if (status & CIR_IRSTS_TE) if (status & CIR_IRSTS_TE)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment