i2c: mpc: implement erratum A-004447 workaround
authorChris Packham <chris.packham@alliedtelesis.co.nz>
Tue, 11 May 2021 21:20:52 +0000 (09:20 +1200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jun 2021 10:01:38 +0000 (12:01 +0200)
commitfff6af6deae8af944f07eb27dba0236e1a2e95cb
treeb3174c2b0719505c60f50b8da485c5f7f1c4dd04
parentd78b76af9f61f384526137d45e53cea0a1020132
i2c: mpc: implement erratum A-004447 workaround

[ Upstream commit 8f0cdec8b5fd94135d643662506ee94ae9e98785 ]

The P2040/P2041 has an erratum where the normal i2c recovery mechanism
does not work. Implement the alternative recovery mechanism documented
in the P2040 Chip Errata Rev Q.

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/i2c/busses/i2c-mpc.c