linux/drivers/media
Tomi Valkeinen abd34206f3 media: rkisp1: Fix IRQ handling due to shared interrupts
[ Upstream commit ffb635bb39 ]

The driver requests the interrupts as IRQF_SHARED, so the interrupt
handlers can be called at any time. If such a call happens while the ISP
is powered down, the SoC will hang as the driver tries to access the
ISP registers.

This can be reproduced even without the platform sharing the IRQ line:
Enable CONFIG_DEBUG_SHIRQ and unload the driver, and the board will
hang.

Fix this by adding a new field, 'irqs_enabled', which is used to bail
out from the interrupt handler when the ISP is not operational.

Link: https://lore.kernel.org/r/20231218-rkisp-shirq-fix-v1-2-173007628248@ideasonboard.com

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2024-03-26 18:20:24 -04:00
..
cec media: cec: meson: always include meson sub-directory in Makefile 2023-11-20 11:52:15 +01:00
common media: videobuf2-dma-sg: fix vmap callback 2024-01-31 16:17:01 -08:00
dvb-core media: dvbdev: drop refcount on error path in dvb_device_open() 2024-01-25 15:27:35 -08:00
dvb-frontends media: dvb-frontends: m88ds3103: Fix a memory leak in an error handling path of m88ds3103_probe() 2024-01-25 15:27:35 -08:00
firewire media: Makefiles: remove extra spaces 2022-03-12 16:59:52 +01:00
i2c media: i2c: imx335: Fix hblank min/max values 2024-02-05 20:12:56 +00:00
mc media: mc: Get media_device directly from pad 2023-03-10 09:33:42 +01:00
mmc media: media/*/Kconfig: sort entries 2022-03-18 05:58:35 +01:00
pci media: ddbridge: fix an error code problem in ddb_probe 2024-02-05 20:12:56 +00:00
platform media: rkisp1: Fix IRQ handling due to shared interrupts 2024-03-26 18:20:24 -04:00
radio media: radio-shark: Add endpoint checks 2023-05-30 14:03:20 +01:00
rc media: rc: bpf attach/detach requires write permission 2024-02-23 09:12:41 +01:00
spi media updates for v5.18-rc1 2022-03-23 14:51:35 -07:00
test-drivers media: vivid: avoid integer overflow 2023-11-28 17:07:02 +00:00
tuners media: tuners: qt1010: replace BUG_ON with a regular error 2023-09-23 11:11:06 +02:00
usb media: stk1160: Fixed high volume of stk1160_dbg messages 2024-02-05 20:12:55 +00:00
v4l2-core media: v4l2-core: Fix a potential resource leak in v4l2_fwnode_parse_link() 2023-09-13 09:42:49 +02:00
Kconfig media: remove reference to CONFIG_EMBEDDED in MEDIA_SUPPORT_FILTER 2022-09-08 18:19:29 +02:00
Makefile media: Makefiles: remove extra spaces 2022-03-12 16:59:52 +01:00