]> git.baikalelectronics.ru Git - kernel.git/commit
can: mcp251xfd: mcp251xfd_stop(): add missing hrtimer_cancel()
authorMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 6 Jun 2022 12:46:18 +0000 (14:46 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 4 Jul 2022 10:46:45 +0000 (12:46 +0200)
commit6bc93919829d548df41d1c9408f3b2cf3038dab4
treeb96e704b47cdd37afdba3aab405e33458a20a8ff
parent948872e2371a0a74bb903344f1b22dff4e8ee6ef
can: mcp251xfd: mcp251xfd_stop(): add missing hrtimer_cancel()

In commit 2cebcedc45bf ("can: mcp251xfd: add TX IRQ coalescing
support") software based TX coalescing was added to the driver. The
key idea is to keep the TX complete IRQ disabled for some time after
processing it and re-enable later by a hrtimer. When bringing the
interface down, this timer has to be stopped.

Add the missing hrtimer_cancel() of the tx_irq_time hrtimer to
mcp251xfd_stop().

Link: https://lore.kernel.org/all/20220620143942.891811-1-mkl@pengutronix.de
Fixes: 2cebcedc45bf ("can: mcp251xfd: add TX IRQ coalescing support")
Cc: stable@vger.kernel.org # v5.18
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/spi/mcp251xfd/mcp251xfd-core.c