mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 19:47:08 +02:00
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: 07f25091ca ("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>
This commit is contained in:
parent
a651261ac7
commit
6eff1cead7
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user