mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
[media] media: rc: nuvoton: simplify interrupt handling code
Simplify interupt handling code. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
e5283f5f1f
commit
228942efdb
1 changed files with 1 additions and 6 deletions
|
@ -906,17 +906,12 @@ static irqreturn_t nvt_cir_isr(int irq, void *data)
|
|||
if (status & CIR_IRSTS_RFO)
|
||||
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 */
|
||||
if (nvt_cir_tx_inactive(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);
|
||||
|
||||
if (status & CIR_IRSTS_TE)
|
||||
|
|
Loading…
Reference in a new issue