]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: pxa: fix i2c_pxa_wait_bus_not_busy() boundary condition
authorRussell King <rmk+kernel@armlinux.org.uk>
Mon, 27 Apr 2020 18:49:32 +0000 (19:49 +0100)
committerWolfram Sang <wsa@kernel.org>
Tue, 5 May 2020 12:51:07 +0000 (14:51 +0200)
commitfaeb543107b1e1080f3f398f9e946c24c83a8eea
tree160e0981610356976de67a32851e3bf200d316bc
parent43b1442fa497686fca369702c6a1b8690f9f274b
i2c: pxa: fix i2c_pxa_wait_bus_not_busy() boundary condition

Fix i2c_pxa_wait_bus_not_busy()'s boundary conditions, so that a
coincidental success and timeout results in the function returning
success.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-pxa.c