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 10:04:58 +0000 (11:04 +0100)
commit95abac60d96d75d7fea3648cea55b38fb17e18fb
tree327e08b9a66e1040ea3fc7e9600ae0d6fa12d553
parentf374976a7e4d5906991fea69c303e3c6e0003697
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