i2c: mpc: Make use of i2c_recover_bus()
authorChris Packham <chris.packham@alliedtelesis.co.nz>
Mon, 29 Mar 2021 01:52:03 +0000 (14:52 +1300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jun 2021 10:01:38 +0000 (12:01 +0200)
commitd78b76af9f61f384526137d45e53cea0a1020132
tree2a1f45eedd69d3910cdbe0d27938cde5a0e1e78d
parentfa05ba61967ad051f5f2b7c4f39d6c56719c9900
i2c: mpc: Make use of i2c_recover_bus()

[ Upstream commit 65171b2df15eb7545431d75c2729b5062da89b43 ]

Move the existing calls of mpc_i2c_fixup() to a recovery function
registered via bus_recovery_info. This makes it more obvious that
recovery is supported and allows for a future where recovery is
triggered by the i2c core.

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