i2c: axxia: Add bus recovery functionality
authorAlexander Sverdlin <alexander.sverdlin@nokia.com>
Wed, 13 May 2015 09:03:42 +0000 (11:03 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 2 Jun 2015 15:40:16 +0000 (00:40 +0900)
commit7e2dc811b4ae70ecfa3c164e3e400a78a3244338
treefc5117816f994b47b39d7f0a75211464588f2345
parent7ef85f5fdd081b982d43b95b06272f8646a98818
i2c: axxia: Add bus recovery functionality

Use recovery framework and implement bus recovery using "Bus Monitor" register.
Tests show that shortening SDA to GND results in "completion" timeout with
"BUSY" bit still set, so initiate recovery in this case.

Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-axxia.c