[PATCH v2] i2c: designware: fix i2c probe error

Heiko Schocher hs at nabladev.com
Thu Jul 9 17:18:49 CEST 2026


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 <cobenhan at mediastek.com>
> ---
> 
> 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: office at nabladev.com
Geschäftsführer : Stefano Babic


More information about the U-Boot mailing list