Patch "can: m_can: disable_all_interrupts, not clear active_interrupts" has been added to the 6.10-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: disable_all_interrupts, not clear active_interrupts

to the 6.10-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-disable_all_interrupts-not-clear-active_in.patch
and it can be found in the queue-6.10 subdirectory.

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



commit 03b17ffeb07cf8c70edbc9ee548fa734e6d98d0f
Author: Markus Schneider-Pargmann <msp@xxxxxxxxxxxx>
Date:   Mon Aug 5 20:30:45 2024 +0200

    can: m_can: disable_all_interrupts, not clear active_interrupts
    
    [ Upstream commit a572fea86c9b06cd3e6e89d79d565b52cb7e7cff ]
    
    active_interrupts is a cache for the enabled interrupts and not the
    global masking of interrupts. Do not clear this variable otherwise we
    may loose the state of the interrupts.
    
    Fixes: 07f25091ca02 ("can: m_can: Implement receive coalescing")
    Signed-off-by: Markus Schneider-Pargmann <msp@xxxxxxxxxxxx>
    Link: https://lore.kernel.org/all/20240805183047.305630-6-msp@xxxxxxxxxxxx
    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 d15655df6393..073842ab210d 100644
--- a/drivers/net/can/m_can/m_can.c
+++ b/drivers/net/can/m_can/m_can.c
@@ -449,7 +449,6 @@ static inline void m_can_disable_all_interrupts(struct m_can_classdev *cdev)
 {
 	m_can_coalescing_disable(cdev);
 	m_can_write(cdev, M_CAN_ILE, 0x0);
-	cdev->active_interrupts = 0x0;
 
 	if (!cdev->net->irq) {
 		dev_dbg(cdev->dev, "Stop hrtimer\n");




[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