linux/drivers/media/pci/intel
Stanislaw Gruszka 1429826883 media: intel/ipu6: do not handle interrupts when device is disabled
Some IPU6 devices have shared interrupts. We need to handle properly
case when interrupt is triggered from other device on shared irq line
and IPU6 itself disabled. In such case we get 0xffffffff from
ISR_STATUS register and handle all irq's cases, for what we are not
not prepared and usually hang the whole system.

To avoid the issue use pm_runtime_get_if_active() to check if
the device is enabled and prevent suspending it when we handle irq
until the end of irq. Additionally use synchronize_irq() in suspend

Fixes: ab29a2478e ("media: intel/ipu6: add IPU6 buttress interface driver")
Cc: stable@vger.kernel.org
Signed-off-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: Hans de Goede <hdegoede@redhat.com> # ThinkPad X1 Yoga Gen 8, ov2740
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2024-11-07 09:05:58 +01:00
..
ipu3 media: pci: drop vb2_ops_wait_prepare/finish 2024-10-28 09:19:53 +01:00
ipu6 media: intel/ipu6: do not handle interrupts when device is disabled 2024-11-07 09:05:58 +01:00
ivsc media updates for v6.11-rc1 2024-07-17 18:30:10 -07:00
ipu-bridge.c media: ipu-bridge: Add HIDs from out of tree IPU6 driver ipu-bridge copy 2024-06-15 11:16:39 +02:00
Kconfig media: intel/ipu6: Fix direct dependency Kconfig error 2024-05-02 11:19:00 +01:00
Makefile media: intel/ipu6: add Kconfig and Makefile 2024-04-29 14:56:38 +02:00