Patch "mfd: da9061: Fix Failed to set Two-Wire Bus Mode." 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

    mfd: da9061: Fix Failed to set Two-Wire Bus Mode.

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:
     mfd-da9061-fix-failed-to-set-two-wire-bus-mode.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 250bd62ebc28602bad88da1b9b7a2695314286f2
Author: Jens Hillenstedt <jens.hillenstedt@xxxxxx>
Date:   Thu Sep 15 11:20:04 2022 +0200

    mfd: da9061: Fix Failed to set Two-Wire Bus Mode.
    
    [ Upstream commit 834382ea32865a4bdeae83ec2dcb9321dc9489f2 ]
    
    In da9062_i2c_probe() regmap_clear_bits() tries to access CONFIG_J
    register. As CONFIG_J is not present in da9061_aa_writeable_ranges[] probe
    of da9061 fails:
    
      da9062 2-0058: Entering I2C mode!
      da9062 2-0058: Failed to set Two-Wire Bus Mode.
      da9062: probe of 2-0058 failed with error -5
    
    Add CONFIG_J register to da9061_aa_writeable_ranges[].
    
    Fixes: 5c6f0f456351 ("mfd: da9062: Support SMBus and I2C mode")
    Signed-off-by: Jens Hillenstedt <jens.hillenstedt@xxxxxx>
    Reviewed-by: Adam Ward <DLG-Adam.Ward.opensource@xxxxxxxxxxxxxx>
    Signed-off-by: Lee Jones <lee@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20220915092004.168744-1-jens.hillenstedt@xxxxxx
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/mfd/da9062-core.c b/drivers/mfd/da9062-core.c
index 2774b2cbaea6..c2acdbcd5d6b 100644
--- a/drivers/mfd/da9062-core.c
+++ b/drivers/mfd/da9062-core.c
@@ -453,6 +453,7 @@ static const struct regmap_range da9061_aa_writeable_ranges[] = {
 	regmap_reg_range(DA9062AA_VBUCK1_B, DA9062AA_VBUCK4_B),
 	regmap_reg_range(DA9062AA_VBUCK3_B, DA9062AA_VBUCK3_B),
 	regmap_reg_range(DA9062AA_VLDO1_B, DA9062AA_VLDO4_B),
+	regmap_reg_range(DA9062AA_CONFIG_J, DA9062AA_CONFIG_J),
 	regmap_reg_range(DA9062AA_GP_ID_0, DA9062AA_GP_ID_19),
 };
 



[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