media: mtk-vcodec: make IRQs disabled upon request
authorAlexandre Courbot <acourbot@chromium.org>
Fri, 21 Aug 2020 11:19:23 +0000 (13:19 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sat, 26 Sep 2020 08:12:09 +0000 (10:12 +0200)
commit59b2076df4fd905471a33805526d668226f3f814
treebd19c3679e7578e54bf56824d105cd0f615f8407
parent42f401e751b58ef071874779ef972187ef5dfce3
media: mtk-vcodec: make IRQs disabled upon request

The driver requests IRQs to disable them immediately. This is
potentially racy, fix this by requesting the IRQs to come disabled
instead using the IRQ_NOAUTOEN flag of irq_set_status_flags().

Reported-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Alexandre Courbot <acourbot@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c
drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c