Commit 3b7e1912 authored by Tali Perry's avatar Tali Perry Committed by Greg Kroah-Hartman
Browse files

i2c: npcm: Add clock toggle recovery



[ Upstream commit 38010591 ]

During init of the bus, the module checks that the bus is idle.
If one of the lines are stuck try to recover them first before failing.
Sometimes SDA and SCL are low if improper reset occurs (e.g., reboot).

Signed-off-by: default avatarTali Perry <tali.perry1@gmail.com>
Signed-off-by: default avatarMohammed Elbadry <mohammed.0.elbadry@gmail.com>
Reviewed-by: default avatarMukesh Kumar Savaliya <quic_msavaliy@quicinc.com>
Link: https://lore.kernel.org/r/20250328193252.1570811-1-mohammed.0.elbadry@gmail.com


Signed-off-by: default avatarAndi Shyti <andi.shyti@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 747eef5f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment