Patch "regulator: slg51000: Wait after asserting CS pin" has been added to the 6.0-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: slg51000: Wait after asserting CS pin

to the 6.0-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-slg51000-wait-after-asserting-cs-pin.patch
and it can be found in the queue-6.0 subdirectory.

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



commit 7c9bb18a4a4b2f5082660c8a16089f9cef4206bd
Author: Konrad Dybcio <konrad.dybcio@xxxxxxxxxx>
Date:   Fri Nov 18 14:10:35 2022 +0100

    regulator: slg51000: Wait after asserting CS pin
    
    [ Upstream commit 0b24dfa587c6cc7484cfb170da5c7dd73451f670 ]
    
    Sony's downstream driver [1], among some other changes, adds a
    seemingly random 10ms usleep_range, which turned out to be necessary
    for the hardware to function properly on at least Sony Xperia 1 IV.
    Without this, I2C transactions with the SLG51000 straight up fail.
    
    Relax (10-10ms -> 10-11ms) and add the aforementioned sleep to make
    sure the hardware has some time to wake up.
    
    (nagara-2.0.0-mlc/vendor/semc/hardware/camera-kernel-module/)
    [1] https://developer.sony.com/file/download/open-source-archive-for-64-0-m-4-29/
    
    Signed-off-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20221118131035.54874-1-konrad.dybcio@xxxxxxxxxx
    Signed-off-by: Mark Brown <broonie@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/regulator/slg51000-regulator.c b/drivers/regulator/slg51000-regulator.c
index 75a941fb3c2b..1b2eee95ad3f 100644
--- a/drivers/regulator/slg51000-regulator.c
+++ b/drivers/regulator/slg51000-regulator.c
@@ -457,6 +457,8 @@ static int slg51000_i2c_probe(struct i2c_client *client)
 		chip->cs_gpiod = cs_gpiod;
 	}
 
+	usleep_range(10000, 11000);
+
 	i2c_set_clientdata(client, chip);
 	chip->chip_irq = client->irq;
 	chip->dev = dev;



[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