Patch "regulator (max5970): Fix IRQ handler" has been added to the 6.6-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

    regulator (max5970): Fix IRQ handler

to the 6.6-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:
     regulator-max5970-fix-irq-handler.patch
and it can be found in the queue-6.6 subdirectory.

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



commit 733e15cdf27f1201aaa57e8d59fbfb100fa4c3ed
Author: Patrick Rudolph <patrick.rudolph@xxxxxxxxxxxxx>
Date:   Tue Jan 30 20:32:56 2024 +0530

    regulator (max5970): Fix IRQ handler
    
    [ Upstream commit a3fa9838e8140584a6f338e8516f2b05d3bea812 ]
    
    The max5970 datasheet gives the impression that IRQ status bits must
    be cleared by writing a one to set bits, as those are marked with 'R/C',
    however tests showed that a zero must be written.
    
    Fixes an IRQ storm as the interrupt handler actually clears the IRQ
    status bits.
    
    Signed-off-by: Patrick Rudolph <patrick.rudolph@xxxxxxxxxxxxx>
    Signed-off-by: Naresh Solanki <naresh.solanki@xxxxxxxxxxxxx>
    Link: https://msgid.link/r/20240130150257.3643657-1-naresh.solanki@xxxxxxxxxxxxx
    Signed-off-by: Mark Brown <broonie@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/regulator/max5970-regulator.c b/drivers/regulator/max5970-regulator.c
index b56a174cde3df..5c2d49ae332fb 100644
--- a/drivers/regulator/max5970-regulator.c
+++ b/drivers/regulator/max5970-regulator.c
@@ -265,7 +265,7 @@ static int max597x_regmap_read_clear(struct regmap *map, unsigned int reg,
 		return ret;
 
 	if (*val)
-		return regmap_write(map, reg, *val);
+		return regmap_write(map, reg, 0);
 
 	return 0;
 }




[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