
Hello Baruch,
Am 29.05.2018 um 06:45 schrieb Baruch Siach:
Equivalent code that disables the hidden i2c0 slave already exists in the Turris Omnia platform specific code. But this hidden i2c0 slave that interferes the i2c bus is not board specific. Armada 38x SoCs and at least some Kirkwood variants are affected as well. Add code to disable this slave to the i2c bus driver to make it work on all affected hardware.
Use the bind callback because we want this to always run at boot, regardless of whether U-Boot uses the i2c bus.
Cc: Rabeeh Khoury rabeeh@solid-run.com Cc: Chris Packham judge.packham@gmail.com Reviewed-by: Stefan Roese sr@denx.de Reviewed-by: Heiko Schocher hs@denx.de Signed-off-by: Baruch Siach baruch@tkos.co.il
v2:
Use clrbits_le32 (Stefan Roese)
Apply to Kirkwood (Chris Packham)
Add review tags from Stefan and Heiko
drivers/i2c/mvtwsi.c | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-)
Your patch breaks build for sun8i, see travis build:
https://travis-ci.org/hsdenx/u-boot-i2c/jobs/388655845
Please fix this issue, and send a v3, thanks!
bye, Heiko