Hello Coben,

On 11.06.26 05:06, Coben Han wrote:
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 <[email protected]>
---

Changes in v2:
- use the return value of i2c_wait_for_bb in error case
---
  drivers/i2c/designware_i2c.c | 44 ++++++++++++++++++++++++++++++++----
  1 file changed, 39 insertions(+), 5 deletions(-)

Applied to u-boot-i2c.git

Thanks!

bye,
Heiko
--
Nabla Software Engineering
HRB 40522 Augsburg
Phone: +49 821 45592596
E-Mail: [email protected]
Geschäftsführer : Stefano Babic

Reply via email to