linux-yocto/drivers/net/can/m_can
Marc Kleine-Budde e4de81f9e1 can: m_can: m_can_close(): don't call free_irq() for IRQ-less devices
In commit b382380c0d ("can: m_can: Add hrtimer to generate software
interrupt") support for IRQ-less devices was added. Instead of an
interrupt, the interrupt routine is called by a hrtimer-based polling
loop.

That patch forgot to change free_irq() to be only called for devices
with IRQs. Fix this, by calling free_irq() conditionally only if an
IRQ is available for the device (and thus has been requested
previously).

Fixes: b382380c0d ("can: m_can: Add hrtimer to generate software interrupt")
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Markus Schneider-Pargmann <msp@baylibre.com>
Link: https://patch.msgid.link/20240930-m_can-cleanups-v1-1-001c579cdee4@pengutronix.de
Cc: <stable@vger.kernel.org> # v6.6+
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2024-11-04 18:01:06 +01:00
..
Kconfig can: Kconfig: add CONFIG_CAN_RX_OFFLOAD 2022-06-11 17:11:02 +02:00
m_can_pci.c can: m_can: Constify struct m_can_ops 2024-06-28 09:35:13 +02:00
m_can_platform.c can: Switch back to struct platform_driver::remove() 2024-09-11 09:37:16 +02:00
m_can.c can: m_can: m_can_close(): don't call free_irq() for IRQ-less devices 2024-11-04 18:01:06 +01:00
m_can.h can: m_can: Constify struct m_can_ops 2024-06-28 09:35:13 +02:00
Makefile can: tcan4x5x: move regmap code into seperate file 2021-01-06 15:15:37 +01:00
tcan4x5x-core.c can: m_can: Constify struct m_can_ops 2024-06-28 09:35:13 +02:00
tcan4x5x-regmap.c can: tcan4x5x: Remove reserved register 0x814 from writable table 2023-07-31 10:41:08 +02:00
tcan4x5x.h can: tcan4x5x: remove duplicate include of regmap.h 2021-03-30 11:14:48 +02:00