]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mfd: da9061: Fix Failed to set Two-Wire Bus Mode.
authorJens Hillenstedt <jens.hillenstedt@ise.de>
Thu, 15 Sep 2022 09:20:04 +0000 (11:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Oct 2022 07:57:59 +0000 (09:57 +0200)
commit85c7a6837ea769d3af4b49552da8c111a951efab
treede2bb8994d9ce421b42a45240994c6e37e87a0be
parente878673f5635202cbf2a93c1932820b6384b710f
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@ise.de>
Reviewed-by: Adam Ward <DLG-Adam.Ward.opensource@dm.renesas.com>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20220915092004.168744-1-jens.hillenstedt@ise.de
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mfd/da9062-core.c