]> git.baikalelectronics.ru Git - kernel.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)
commitfcd73d3ce6be4ca09ad802693e88e922180683c7
treeecfdc707cf42d7e687ba406bc8042ba502c65bb4
parent3e05847463c6caab42d4f4ddd88ce200dd846b67
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