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 09:54:21 +0000 (10:54 +0100)
commit30d35a1abd9edc1f771bdc8118940c5db0c7cb58
tree58b4431bc7046436b28efe9ea08a32c3f9a45e14
parent4b25aad655c92d4d99aaf733f7e128852e05069c
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