commit | 9c7cae2427715502227f823364a6a77828fdf3ea | [log] [tgz] |
---|---|---|
author | Mark Tomlinson <mark.tomlinson@alliedtelesis.co.nz> | Thu Aug 27 10:35:16 2020 +1200 |
committer | Wolfram Sang <wsa@kernel.org> | Wed Dec 02 21:29:30 2020 +0100 |
tree | 9b48fab235b6c6792f50ae4ce207dfa9f99d92fb | |
parent | 5df324b5f4baa3a51990f078fa445800197dfba3 [diff] |
i2c: mv64xxx: Add bus error recovery This adds i2c bus recovery to the mv64xxx driver. Implement bus recovery to recover from SCL/SDA stuck low. This uses the generic recovery function, setting the clock/data lines as GPIO pins, and sending 9 clocks to try and recover the bus. Signed-off-by: Mark Tomlinson <mark.tomlinson@alliedtelesis.co.nz> [wsa: added some curly braces] Signed-off-by: Wolfram Sang <wsa@kernel.org>