linux_dsm_epyc7002/drivers/i2c
Claudio Foellmi 1f35b86536 i2c: generic recovery: check SCL before SDA
Move the check for a stuck SCL before the check for a high SDA.
This prevent false positives in the specific case that SDA is fine
and SCL is stuck, which previously returned 0.

Also check SDA again after the loop, if we can.
Together, these changes should lead to a lot more failed
recoveries being caught and returning error codes.

Signed-off-by: Claudio Foellmi <claudio.foellmi@ergon.ch>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
2017-10-28 22:56:50 +02:00
..
algos
busses i2c: img-scb: Add runtime PM 2017-10-28 14:03:45 +02:00
muxes i2c: mux: reg: use of_property_read_bool() 2017-10-20 16:33:07 +02:00
i2c-boardinfo.c
i2c-core-acpi.c
i2c-core-base.c i2c: generic recovery: check SCL before SDA 2017-10-28 22:56:50 +02:00
i2c-core-of.c
i2c-core-slave.c
i2c-core-smbus.c
i2c-core.h
i2c-dev.c
i2c-mux.c
i2c-slave-eeprom.c
i2c-smbus.c
i2c-stub.c
Kconfig
Makefile