]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
i2c: npcm: Add clock toggle recovery
authorTali Perry <tali.perry1@gmail.com>
Fri, 28 Mar 2025 19:32:50 +0000 (19:32 +0000)
committerAndi Shyti <andi@smida.it>
Mon, 19 May 2025 20:23:54 +0000 (22:23 +0200)
commit38010591a0fc3203f1cee45b01ab358b72dd9ab2
tree6af1147e183aa26defcd283af511653fe7193c19
parent504cb3ce5215da58c07a923379fa9b1ce6797161
i2c: npcm: Add clock toggle recovery

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: Tali Perry <tali.perry1@gmail.com>
Signed-off-by: Mohammed Elbadry <mohammed.0.elbadry@gmail.com>
Reviewed-by: Mukesh Kumar Savaliya <quic_msavaliy@quicinc.com>
Link: https://lore.kernel.org/r/20250328193252.1570811-1-mohammed.0.elbadry@gmail.com
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/busses/i2c-npcm7xx.c