]> git.ipfire.org Git - thirdparty/u-boot.git/commit
i2c: designware: fix i2c probe error
authorCoben Han <cobenhan@mediastek.com>
Thu, 11 Jun 2026 03:06:46 +0000 (12:06 +0900)
committerHeiko Schocher <hs@nabladev.com>
Wed, 8 Jul 2026 09:23:25 +0000 (11:23 +0200)
commitb8487e7e2d10f83bd356f42b0cc29134eafe97ca
tree8d0daeaca8e40541f01c797ae7b0ac58b6089375
parenta8d40f922d10da8b25973dd786380190a8ecb89e
i2c: designware: fix i2c probe error

Probing i2c slave device just needs its device address.

A certain type of chipsets such as RTC S35390A have no offset,
which means address length should be 0.

But the current designware_i2c_probe_chip function requires
offset 0 and its length 1.

This causes the designware-i2c to be initialized again and again.

Furthermore, after booting into kernel, the designware-i2c kernel
driver complains its controller timeout.

This patch fixes this misbehaviour in such way that  only device
address is issued, no reinitialization needs when target device
not detected, the designware-i2c kernel driver continues working.

Signed-off-by: Coben Han <cobenhan@mediastek.com>
drivers/i2c/designware_i2c.c