]> www.infradead.org Git - users/dwmw2/linux.git/commit
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 08:04:29 +0000 (09:04 +0100)
commit7550f3bac339e240429accca059e12c78f43732c
treee7490841374e6636dd829224af387b1d896d76eb
parent01c48e66806f9278be835ed23536fe83a850ca1b
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