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)
commite896be5ad1017aa710f8b979036a43d3e5b2f38d
tree160e0981610356976de67a32851e3bf200d316bc
parentbb82ba690757fb483b5848d3e2f577a102e8a9c8
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