Skip to content

Commit 709cbd5

Browse files
JakeHamby-TDYmarckleinebudde
authored andcommitted
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 <[email protected]> Link: https://patch.msgid.link/20240911-can-m_can-mask-timestamp-wraparound-irq-v1-1-0155b70dc827@pengutronix.de Signed-off-by: Marc Kleine-Budde <[email protected]>
1 parent fe14564 commit 709cbd5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/net/can/m_can/m_can.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1434,7 +1434,8 @@ static int m_can_chip_config(struct net_device *dev)
14341434

14351435
/* Disable unused interrupts */
14361436
interrupts &= ~(IR_ARA | IR_ELO | IR_DRX | IR_TEFF | IR_TFE | IR_TCF |
1437-
IR_HPM | IR_RF1F | IR_RF1W | IR_RF1N | IR_RF0F);
1437+
IR_HPM | IR_RF1F | IR_RF1W | IR_RF1N | IR_RF0F |
1438+
IR_TSW);
14381439

14391440
err = m_can_config_enable(cdev);
14401441
if (err)

0 commit comments

Comments
 (0)