]> git.dujemihanovic.xyz Git - u-boot.git/commit
Revert "arm: mvebu: x240: Use i2c-gpio instead of built in controller"
authorChris Packham <judge.packham@gmail.com>
Tue, 3 Oct 2023 03:57:39 +0000 (16:57 +1300)
committerStefan Roese <sr@denx.de>
Mon, 16 Oct 2023 12:00:45 +0000 (14:00 +0200)
commit10c937fa23ddb5dca19ddd4a6f587a451c03e07f
tree032a78f406a0f4c4283a974c4b36aa06e9adc055
parent5779da53136766b1718fc84ffa07af439f9fe82d
Revert "arm: mvebu: x240: Use i2c-gpio instead of built in controller"

This reverts commit 5c1c6b7306f2b4c0fd50c7cb5d757e245b93606e. The reason
for switching to i2c-gpio was due to an issue we were seeing in the
Linux kernel where the CPU would lock up on certain adverse I2C bus
conditions. We were never able to reproduce the lockup in U-Boot but
assumed that was probably just luck.

Since then we have discovered that the lock up was due to the I2C
transaction offload engine in the I2C controller not coping with the
adverse bus conditions (basically it thinks there's another master and
waits for a STOP condition that never comes). U-Boot doesn't use the I2C
offload feature so is not susceptible to the lockup.

We can therefore safely return to using the built-in I2C controller.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
arch/arm/dts/ac5-98dx35xx-atl-x240.dts
configs/x240_defconfig