Patch "regulator: rk808: fix LDO range on RK806" 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: rk808: fix LDO range on RK806

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-rk808-fix-ldo-range-on-rk806.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 ed8a931224a2aff36a0f47895477e53d87a0cadf
Author: Quentin Schulz <quentin.schulz@xxxxxxxxxxxxxxxxxxxxx>
Date:   Fri Feb 23 14:11:23 2024 +0100

    regulator: rk808: fix LDO range on RK806
    
    [ Upstream commit 6717ff5533f332ef7294655629b8fa5fb8b132de ]
    
    The linear ranges aren't really matching what they should be. Indeed,
    the range is inclusive of the min value, so it makes sense the previous
    range does NOT include the max step value representing the min value of
    the range in question.
    
    Since 3.4V is represented by the decimal value 232, the previous range
    max step value should be 231 and not 232.
    
    No expected change in behavior since 3.4V was mapped with step 232 from
    the first range but is now mapped with step 232 from the second range.
    
    While at it, remove the incorrect comment from the second range.
    
    Fixes: f991a220a447 ("regulator: rk808: add rk806 support")
    Cc: Quentin Schulz <foss+kernel@xxxxxxxxx>
    Signed-off-by: Quentin Schulz <quentin.schulz@xxxxxxxxxxxxxxxxxxxxx>
    Link: https://msgid.link/r/20240223-rk806-regulator-ranges-v1-2-3904ab70d250@xxxxxxxxxxxxxxxxxxxxx
    Signed-off-by: Mark Brown <broonie@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/regulator/rk808-regulator.c b/drivers/regulator/rk808-regulator.c
index 159472644dfde..5807e24bad864 100644
--- a/drivers/regulator/rk808-regulator.c
+++ b/drivers/regulator/rk808-regulator.c
@@ -1025,8 +1025,8 @@ static const struct linear_range rk806_buck_voltage_ranges[] = {
 };
 
 static const struct linear_range rk806_ldo_voltage_ranges[] = {
-	REGULATOR_LINEAR_RANGE(500000, 0, 232, 12500), /* 500mV ~ 3400mV */
-	REGULATOR_LINEAR_RANGE(3400000, 233, 255, 0), /* 500mV ~ 3400mV */
+	REGULATOR_LINEAR_RANGE(500000, 0, 231, 12500), /* 500mV ~ 3400mV */
+	REGULATOR_LINEAR_RANGE(3400000, 232, 255, 0),
 };
 
 static const struct regulator_desc rk806_reg[] = {




[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