i2c: mpc: Correct I2C reset procedure
authorJoakim Tjernlund <joakim.tjernlund@infinera.com>
Thu, 11 May 2017 12:20:33 +0000 (14:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 07:47:39 +0000 (08:47 +0100)
commit6671b609ebcd4518da4527fe534a171f18dc6393
tree6b6fe8ec04842836d217845ae0d6023f4ba91b29
parenta55db63e0b7b3d82a4edb6a6955ce57e36c4a2ee
i2c: mpc: Correct I2C reset procedure

[ Upstream commit ebe82cf92cd4825c3029434cabfcd2f1780e64be ]

Current I2C reset procedure is broken in two ways:
1) It only generate 1 START instead of 9 STARTs and STOP.
2) It leaves the bus Busy so every I2C xfer after the first
   fixup calls the reset routine again, for every xfer there after.

This fixes both errors.

Signed-off-by: Joakim Tjernlund <joakim.tjernlund@infinera.com>
Acked-by: Scott Wood <oss@buserror.net>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/i2c/busses/i2c-mpc.c