mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 16:24:13 +08:00
i2c: ensure SDA is released in recovery if SDA is controllable
If we have a function to control SDA, we should ensure that SDA is not held down by us. So, release the GPIO in this case. Tested-by: Phil Reid <preid@electromag.com.au> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
This commit is contained in:
parent
8092178ffe
commit
72b08fcc15
@ -169,6 +169,8 @@ int i2c_generic_scl_recovery(struct i2c_adapter *adap)
|
||||
bri->prepare_recovery(adap);
|
||||
|
||||
bri->set_scl(adap, val);
|
||||
if (bri->set_sda)
|
||||
bri->set_sda(adap, 1);
|
||||
ndelay(RECOVERY_NDELAY);
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user