summaryrefslogtreecommitdiffstats
path: root/drivers/net/can
diff options
context:
space:
mode:
authorJake Hamby <Jake.Hamby@Teledyne.com>2024-09-06 23:19:51 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2024-09-11 10:52:47 +0200
commit709cbd5bb49b54c3d73c1a89b8ebce09c10ed2ed (patch)
treef3dcc25054575b87a23f644d5b3e8fa3ad27a4ad /drivers/net/can
parentfe1456451a111203860e124cda8396f8f2c9c16c (diff)
downloadlinux-709cbd5bb49b54c3d73c1a89b8ebce09c10ed2ed.tar.gz
linux-709cbd5bb49b54c3d73c1a89b8ebce09c10ed2ed.tar.bz2
linux-709cbd5bb49b54c3d73c1a89b8ebce09c10ed2ed.zip
can: m_can: m_can_chip_config(): mask timestamp wraparound IRQ
On the Microchip SAMA7G54 MPU the IR_TSW (timestamp wraparound) fires at about 1 Hz, but the driver doesn't care about it. Add it to the list of interrupts to disable in m_can_chip_config to reduce unneeded wakeups. Link: https://patch.msgid.link/DM8PR14MB5221D9DD3A7F2130EF161AF7EF9E2@DM8PR14MB5221.namprd14.prod.outlook.com Signed-off-by: Jake Hamby <Jake.Hamby@Teledyne.com> Link: https://patch.msgid.link/20240911-can-m_can-mask-timestamp-wraparound-irq-v1-1-0155b70dc827@pengutronix.de 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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/can/m_can/m_can.c b/drivers/net/can/m_can/m_can.c
index 012c3d22b01d..a7b3bc439ae5 100644
--- a/drivers/net/can/m_can/m_can.c
+++ b/drivers/net/can/m_can/m_can.c
@@ -1434,7 +1434,8 @@ static int m_can_chip_config(struct net_device *dev)
/* Disable unused interrupts */
interrupts &= ~(IR_ARA | IR_ELO | IR_DRX | IR_TEFF | IR_TFE | IR_TCF |
- IR_HPM | IR_RF1F | IR_RF1W | IR_RF1N | IR_RF0F);
+ IR_HPM | IR_RF1F | IR_RF1W | IR_RF1N | IR_RF0F |
+ IR_TSW);
err = m_can_config_enable(cdev);
if (err)