summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorClaudio Foellmi <claudio.foellmi@ergon.ch>2017-10-05 14:44:14 +0200
committerWolfram Sang <wsa@the-dreams.de>2017-10-28 22:56:50 +0200
commit1f35b8653687b9c08c8d58489c1b5cb9cf961c17 (patch)
treef078d095f01fa9792a3ce8e8849cf5a1e70e0c4d /tools
parentMerge tag 'i2c-mux/for-4.15-2' of https://github.com/peda-r/i2c-mux into i2c/... (diff)
downloadlinux-1f35b8653687b9c08c8d58489c1b5cb9cf961c17.tar.xz
linux-1f35b8653687b9c08c8d58489c1b5cb9cf961c17.zip
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>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions