mirror-linux/drivers/counter
Haotian Zhang 9517d76dd1 counter: 104-quad-8: Fix incorrect return value in IRQ handler
quad8_irq_handler() should return irqreturn_t enum values, but it
directly returns negative errno codes from regmap operations on error.

Return IRQ_NONE if the interrupt status cannot be read. If clearing the
interrupt fails, return IRQ_HANDLED to prevent the kernel from disabling
the IRQ line due to a spurious interrupt storm. Also, log these regmap
failures with dev_WARN_ONCE.

Fixes: 98ffe02529 ("counter: 104-quad-8: Migrate to the regmap API")
Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
Link: https://lore.kernel.org/r/20251215020114.1913-1-vulab@iscas.ac.cn
Cc: stable@vger.kernel.org
Signed-off-by: William Breathitt Gray <wbg@kernel.org>
2025-12-22 20:03:23 +09:00
..
104-quad-8.c counter: 104-quad-8: Fix incorrect return value in IRQ handler 2025-12-22 20:03:23 +09:00
Kconfig counter: ti-eqep: Allow eQEP driver to be built for K3 devices 2024-07-01 19:05:42 +09:00
Makefile counter: i8254: Introduce the Intel 8254 interface library module 2023-06-08 10:11:17 -04:00
counter-chrdev.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
counter-chrdev.h counter: Add character device interface 2021-10-17 10:53:52 +01:00
counter-core.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
counter-sysfs.c counter: i8254: Introduce the Intel 8254 interface library module 2023-06-08 10:11:17 -04:00
counter-sysfs.h counter: Internalize sysfs interface code 2021-10-17 10:52:58 +01:00
ftm-quaddec.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
i8254.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
intel-qep.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
interrupt-cnt.c counter: interrupt-cnt: Drop IRQF_NO_THREAD flag 2025-12-22 19:39:58 +09:00
microchip-tcb-capture.c counter: microchip-tcb-capture: Allow shared IRQ for multi-channel TCBs 2025-10-13 14:56:30 +09:00
rz-mtu3-cnt.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
stm32-lptimer-cnt.c counter: stm32-lptimer-cnt: fix error handling when enabling 2025-03-04 19:23:02 +09:00
stm32-timer-cnt.c counter: stm32-timer-cnt: add support for stm32mp25 2025-05-15 09:20:12 +09:00
ti-ecap-capture.c counter: ti-ecap-capture: Use devm_pm_runtime_enable() 2025-08-24 17:02:03 +09:00
ti-eqep.c counter: ti-eqep: add direction support 2025-02-05 13:22:04 +09:00