Skip to content

Commit a572fea

Browse files
scosumarckleinebudde
authored andcommitted
can: m_can: disable_all_interrupts, not clear active_interrupts
active_interrupts is a cache for the enabled interrupts and not the global masking of interrupts. Do not clear this variable otherwise we may loose the state of the interrupts. 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-6-msp@baylibre.com Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
1 parent 4d5159b commit a572fea

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/net/can/m_can/m_can.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,6 @@ static inline void m_can_disable_all_interrupts(struct m_can_classdev *cdev)
483483
{
484484
m_can_coalescing_disable(cdev);
485485
m_can_write(cdev, M_CAN_ILE, 0x0);
486-
cdev->active_interrupts = 0x0;
487486

488487
if (!cdev->net->irq) {
489488
dev_dbg(cdev->dev, "Stop hrtimer\n");

0 commit comments

Comments
 (0)