Commit 6eff1cea authored by Markus Schneider-Pargmann's avatar Markus Schneider-Pargmann Committed by Marc Kleine-Budde
Browse files

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: 07f25091 ("can: m_can: Implement receive coalescing")
Signed-off-by: default avatarMarkus Schneider-Pargmann <msp@baylibre.com>
Link: https://lore.kernel.org/all/20240805183047.305630-3-msp@baylibre.com


Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent a651261a
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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);