can: m_can: Reset cached active_interrupts on start

[ Upstream commit 733dbf556c ]

To force writing the enabled interrupts, reset the active_interrupts
cache.

Fixes: 07f25091ca ("can: m_can: Implement receive coalescing")
Signed-off-by: Markus Schneider-Pargmann <msp@baylibre.com>
Link: https://lore.kernel.org/all/20240805183047.305630-7-msp@baylibre.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Markus Schneider-Pargmann
2024-08-05 20:30:46 +02:00
committed by Greg Kroah-Hartman
parent 3fe629aa7d
commit 9b6513daa5
+1
View File
@@ -1505,6 +1505,7 @@ static int m_can_chip_config(struct net_device *dev)
else
interrupts &= ~(IR_ERR_LEC_31X);
}
cdev->active_interrupts = 0;
m_can_interrupt_enable(cdev, interrupts);
/* route all interrupts to INT0 */