mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-05 20:04:31 -05:00
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 <digetx@gmail.com> Signed-off-by: Hans Verkuil <hansverk@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
3830e4f2a9
commit
2efa20dae2
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user