Skip to content

Commit 2a2c8ee

Browse files
Wolfram SangWolfram Sang
authored andcommitted
Revert "i2c: algo-bit: init the bus to a known state"
This reverts commit 3e5f06b. As per bugzilla #200045, this caused a regression. I don't really see a way to fix it without having the hardware. So, revert the patch and I will fix the issue I was seeing originally in the i2c-gpio driver itself. I couldn't find new users of this algorithm since, so there should be no one depending on the new behaviour. Reported-by: Sergey Larin <cerg2010cerg2010@mail.ru> Fixes: 3e5f06b ("i2c: algo-bit: init the bus to a known state") Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Tested-by: Sergey Larin <cerg2010cerg2010@mail.ru> Signed-off-by: Wolfram Sang <wsa@the-dreams.de> Cc: stable@kernel.org
1 parent 7daf201 commit 2a2c8ee

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

‎drivers/i2c/algos/i2c-algo-bit.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -647,11 +647,6 @@ static int __i2c_bit_add_bus(struct i2c_adapter *adap,
647647
if (bit_adap->getscl == NULL)
648648
adap->quirks = &i2c_bit_quirk_no_clk_stretch;
649649

650-
/* Bring bus to a known state. Looks like STOP if bus is not free yet */
651-
setscl(bit_adap, 1);
652-
udelay(bit_adap->udelay);
653-
setsda(bit_adap, 1);
654-
655650
ret = add_adapter(adap);
656651
if (ret < 0)
657652
return ret;

0 commit comments

Comments
 (0)