summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2018-07-10 23:42:17 +0200
committerWolfram Sang <wsa@the-dreams.de>2018-07-17 10:42:48 +0200
commit0b71026c69caa10261218528326721828d29a481 (patch)
treeeb0d0bd98fb7b59026a82e1dea675d18375d2246 /include
parentffc59c496bf8498657321c59433f55bbcf2d9c38 (diff)
downloadtalos-obmc-linux-0b71026c69caa10261218528326721828d29a481.tar.gz
talos-obmc-linux-0b71026c69caa10261218528326721828d29a481.zip
i2c: recovery: refactor recovery function
After exiting the while loop, we checked if recovery was successful and sent a STOP to the clients. Meanwhile however, we send a STOP after every pulse, so it is not needed after the loop. If we move the check for a free bus to the end of the while loop, we can shorten and simplify the logic. It is still ensured that at least one STOP will be sent to the wire even if SDA was not stuck low. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: Peter Rosin <peda@axentia.se> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud