i2c: st: Implement bus clear
authorPeter Griffin <peter.griffin@linaro.org>
Wed, 11 May 2016 16:21:59 +0000 (17:21 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 13 May 2016 10:40:15 +0000 (12:40 +0200)
commit40027b2fffc2dcef20080847b0913d210ef3ced0
tree42b1372c3379cd0ad2cb1052ef25e024f68d4db7
parent3a9ddaf4dca87f86f70b88d7710da20abfc9aca1
i2c: st: Implement bus clear

>From I2C specifications:
      http://www.nxp.com/documents/user_manual/UM10204.pdf

Chapter 3.1.16, when the i2c device held the SDA line low, the master
should send 9 clocks pulses to try to recover.

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-st.c