From: Dmitry Osipenko Date: Sat, 17 Mar 2018 15:28:14 +0000 (-0400) Subject: media: staging: tegra-vde: Do not handle spurious interrupts X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=2efa20dae2810cf139eb39cbbf302749286e8f2d;p=openwrt%2Fstaging%2Fblogic.git media: staging: tegra-vde: Do not handle spurious interrupts Do not handle interrupts if we haven't asked for them, potentially that could happen if HW wasn't programmed properly. Signed-off-by: Dmitry Osipenko Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/staging/media/tegra-vde/tegra-vde.c b/drivers/staging/media/tegra-vde/tegra-vde.c index 94b4db55cdb5..9e542c6288f1 100644 --- a/drivers/staging/media/tegra-vde/tegra-vde.c +++ b/drivers/staging/media/tegra-vde/tegra-vde.c @@ -935,6 +935,9 @@ static irqreturn_t tegra_vde_isr(int irq, void *data) { struct tegra_vde *vde = data; + if (completion_done(&vde->decode_completion)) + return IRQ_NONE; + tegra_vde_set_bits(vde, 0, vde->frameid + 0x208); complete(&vde->decode_completion);