Home
last modified time | relevance | path

Searched hist:"72 a956c556b68aa2a9c2c64f5a7b9e50f7bf67e1" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/i2c/busses/
H A Di2c-davinci.cdiff 72a956c556b68aa2a9c2c64f5a7b9e50f7bf67e1 Tue Jun 09 05:58:29 CDT 2015 Alexander Sverdlin <alexander.sverdlin@nokia.com> 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>