Skip to content

Commit 733dbf5

Browse files
scosumarckleinebudde
authored andcommitted
can: m_can: Reset cached active_interrupts on start
To force writing the enabled interrupts, reset the active_interrupts cache. Fixes: 07f2509 ("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>
1 parent a572fea commit 733dbf5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/net/can/m_can/m_can.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1541,6 +1541,7 @@ static int m_can_chip_config(struct net_device *dev)
15411541
else
15421542
interrupts &= ~(IR_ERR_LEC_31X);
15431543
}
1544+
cdev->active_interrupts = 0;
15441545
m_can_interrupt_enable(cdev, interrupts);
15451546

15461547
/* route all interrupts to INT0 */

0 commit comments

Comments
 (0)