Skip to content
Commit 834382ea authored by Jens Hillenstedt's avatar Jens Hillenstedt Committed by Lee Jones
Browse files

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



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: 5c6f0f45 ("mfd: da9062: Support SMBus and I2C mode")
Signed-off-by: default avatarJens Hillenstedt <jens.hillenstedt@ise.de>
Reviewed-by: default avatarAdam Ward <DLG-Adam.Ward.opensource@dm.renesas.com>
Signed-off-by: default avatarLee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20220915092004.168744-1-jens.hillenstedt@ise.de
parent 9c90f21f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment