]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
can: m_can: Remove coalesing disable in isr during suspend
authorMarkus Schneider-Pargmann <msp@baylibre.com>
Mon, 5 Aug 2024 18:30:42 +0000 (20:30 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 6 Aug 2024 07:25:29 +0000 (09:25 +0200)
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: 07f25091ca02 ("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>
drivers/net/can/m_can/m_can.c

index 31991e2f343e9edaf631004552000cffd702e278..ba416c973e8d24a9a192e1e7337bbca055b77290 100644 (file)
@@ -1223,10 +1223,8 @@ static irqreturn_t m_can_isr(int irq, void *dev_id)
        struct m_can_classdev *cdev = netdev_priv(dev);
        u32 ir;
 
-       if (pm_runtime_suspended(cdev->dev)) {
-               m_can_coalescing_disable(cdev);
+       if (pm_runtime_suspended(cdev->dev))
                return IRQ_NONE;
-       }
 
        ir = m_can_read(cdev, M_CAN_IR);
        m_can_coalescing_update(cdev, ir);