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)
commitd5a972f561a003e302e4267340c57e8fbd096fa4
treeb96e704b47cdd37afdba3aab405e33458a20a8ff
parente3d4ee7d5f7f5256dfe89219afcc7a2d553b731f
can: mcp251xfd: mcp251xfd_stop(): add missing hrtimer_cancel()

In commit 169d00a25658 ("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: 169d00a25658 ("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