can: m_can: Reset cached active_interrupts on start
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>
This commit is contained in:
committed by
Marc Kleine-Budde
parent
a572fea86c
commit
733dbf556c
@@ -1541,6 +1541,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 */
|
||||
|
||||
Reference in New Issue
Block a user