Patch "can: m_can: m_can_rx_peripheral(): fix RX being blocked by errors" has been added to the 5.4-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    can: m_can: m_can_rx_peripheral(): fix RX being blocked by errors

to the 5.4-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     can-m_can-m_can_rx_peripheral-fix-rx-being-blocked-b.patch
and it can be found in the queue-5.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 86d00b7954d2f74aec10e616e97b97ec45d04846
Author: Torin Cooper-Bennun <torin@xxxxxxxxxxxxxxxxxx>
Date:   Wed Mar 3 14:43:51 2021 +0000

    can: m_can: m_can_rx_peripheral(): fix RX being blocked by errors
    
    [ Upstream commit e98d9ee64ee2cc9b1d1a8e26610ec4d0392ebe50 ]
    
    For M_CAN peripherals, m_can_rx_handler() was called with quota = 1,
    which caused any error handling to block RX from taking place until
    the next time the IRQ handler is called. This had been observed to
    cause RX to be blocked indefinitely in some cases.
    
    This is fixed by calling m_can_rx_handler with a sensibly high quota.
    
    Fixes: f524f829b75a ("can: m_can: Create a m_can platform framework")
    Link: https://lore.kernel.org/r/20210303144350.4093750-1-torin@xxxxxxxxxxxxxxxxxx
    Suggested-by: Marc Kleine-Budde <mkl@xxxxxxxxxxxxxx>
    Signed-off-by: Torin Cooper-Bennun <torin@xxxxxxxxxxxxxxxxxx>
    Signed-off-by: Marc Kleine-Budde <mkl@xxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/can/m_can/m_can.c b/drivers/net/can/m_can/m_can.c
index cf72a7e464ec..b2224113987c 100644
--- a/drivers/net/can/m_can/m_can.c
+++ b/drivers/net/can/m_can/m_can.c
@@ -839,7 +839,7 @@ static int m_can_rx_peripheral(struct net_device *dev)
 {
 	struct m_can_classdev *cdev = netdev_priv(dev);
 
-	m_can_rx_handler(dev, 1);
+	m_can_rx_handler(dev, M_CAN_NAPI_WEIGHT);
 
 	m_can_enable_all_interrupts(cdev);
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux