summaryrefslogtreecommitdiffstats
path: root/drivers/net/can
diff options
context:
space:
mode:
authorMarkus Schneider-Pargmann <msp@baylibre.com>2024-08-05 20:30:46 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2024-08-06 09:25:30 +0200
commit733dbf556cd5b71d5e6f6aa7a93f117b438ab785 (patch)
tree42d86dbb39ffb2195ad4cf9fe46e07ee52a4d08a /drivers/net/can
parenta572fea86c9b06cd3e6e89d79d565b52cb7e7cff (diff)
downloadlinux-stable-733dbf556cd5b71d5e6f6aa7a93f117b438ab785.tar.gz
linux-stable-733dbf556cd5b71d5e6f6aa7a93f117b438ab785.tar.bz2
linux-stable-733dbf556cd5b71d5e6f6aa7a93f117b438ab785.zip
can: m_can: Reset cached active_interrupts on start
To force writing the enabled interrupts, reset the active_interrupts cache. Fixes: 07f25091ca02 ("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>
Diffstat (limited to 'drivers/net/can')
-rw-r--r--drivers/net/can/m_can/m_can.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/can/m_can/m_can.c b/drivers/net/can/m_can/m_can.c
index 68bd4a00ecca..67c4c740c416 100644
--- a/drivers/net/can/m_can/m_can.c
+++ b/drivers/net/can/m_can/m_can.c
@@ -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 */