Patch "rtc: max31335: fix interrupt status reg" has been added to the 6.8-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

    rtc: max31335: fix interrupt status reg

to the 6.8-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:
     rtc-max31335-fix-interrupt-status-reg.patch
and it can be found in the queue-6.8 subdirectory.

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



commit d6b42351e50a781b484c043603be34cfd52bb900
Author: Antoniu Miclaus <antoniu.miclaus@xxxxxxxxxx>
Date:   Mon Feb 19 11:16:15 2024 +0200

    rtc: max31335: fix interrupt status reg
    
    [ Upstream commit c12e67e076cbcb86fd9c3cb003a344ec684138a6 ]
    
    Fix the register value comparison in the `max31335_volatile_reg`
    function for the interrupt status register.
    
    MAX31335_STATUS1 macro definition corresponds to the actual
    interrupt status register.
    
    Fixes: dedaf03b99d6 ("rtc: max31335: add driver support")
    Signed-off-by: Antoniu Miclaus <antoniu.miclaus@xxxxxxxxxx>
    Reviewed-by: Nuno Sa <nuno.sa@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20240219091616.24480-1-antoniu.miclaus@xxxxxxxxxx
    Signed-off-by: Alexandre Belloni <alexandre.belloni@xxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/rtc/rtc-max31335.c b/drivers/rtc/rtc-max31335.c
index 402fda8fd5488..a2441e5c2c74d 100644
--- a/drivers/rtc/rtc-max31335.c
+++ b/drivers/rtc/rtc-max31335.c
@@ -204,7 +204,7 @@ static bool max31335_volatile_reg(struct device *dev, unsigned int reg)
 		return true;
 
 	/* interrupt status register */
-	if (reg == MAX31335_INT_EN1_A1IE)
+	if (reg == MAX31335_STATUS1)
 		return true;
 
 	/* temperature registers */




[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