commit | 72a956c556b68aa2a9c2c64f5a7b9e50f7bf67e1 | [log] [tgz] |
---|---|---|
author | Alexander Sverdlin <alexander.sverdlin@nokia.com> | Tue Jun 09 12:58:29 2015 +0200 |
committer | Wolfram Sang <wsa@the-dreams.de> | Wed Jun 10 22:08:36 2015 +0900 |
tree | 260c4e159fc217c8c853b7e7c944dd598ec85d06 | |
parent | dd1aa2524bc55345ede0b13853c54e1b0be22b9f [diff] |
i2c: davinci: Refactor i2c_davinci_wait_bus_not_busy() There are several problems in the function: - "to_cnt" variable does nothing - schedule_timeout() call without setting current state does nothing - "allow_sleep" parameter is not really used Refactor the function so that it really tries to wait. In case of timeout try to recover the bus. Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>