Skip to content

Commit 6eff1ce

Browse files
scosumarckleinebudde
authored andcommitted
can: m_can: Remove coalesing disable in isr during suspend
We don't need to disable coalescing when the interrupt handler executes while the chip is suspended. The coalescing is already reset during suspend. 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-3-msp@baylibre.com Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
1 parent a651261 commit 6eff1ce

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

drivers/net/can/m_can/m_can.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,10 +1223,8 @@ static irqreturn_t m_can_isr(int irq, void *dev_id)
12231223
struct m_can_classdev *cdev = netdev_priv(dev);
12241224
u32 ir;
12251225

1226-
if (pm_runtime_suspended(cdev->dev)) {
1227-
m_can_coalescing_disable(cdev);
1226+
if (pm_runtime_suspended(cdev->dev))
12281227
return IRQ_NONE;
1229-
}
12301228

12311229
ir = m_can_read(cdev, M_CAN_IR);
12321230
m_can_coalescing_update(cdev, ir);

0 commit comments

Comments
 (0)