]> asedeno.scripts.mit.edu Git - linux.git/commit
i2c: algo-bit: init the bus to a known state
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 4 Dec 2017 08:16:18 +0000 (09:16 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Sat, 30 Dec 2017 23:16:37 +0000 (00:16 +0100)
commit3e5f06bed72fe72166a6778f630241a893f67799
treeecfdc707cf42d7e687ba406bc8042ba502c65bb4
parente53537653791b4aaa9ec88a9eb5fd187d44ff6ac
i2c: algo-bit: init the bus to a known state

Ensure the bus is free when we register the adapter. Before the SCL/SDA
wires were in an unknown state. It used to work because sending a byte
has a retry mechanism which was triggered if the bus was initially in a
non-free state. But the graceful way to do it is to initialize
correctly.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/algos/i2c-algo-bit.c