]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Thu, 15 Jul 2021 17:27:18 +0000 (19:27 +0200)
commit18b87fbf95bef06c162bcce04809cdeb9cbba116
tree5358a717dc8e8fc4288fad158693f7da2f28e1d3
parent037379ed4885deb12eeadafe40ad393c493be674
i2c: mpc: Make use of i2c_recover_bus()

BugLink: https://bugs.launchpad.net/bugs/1933369
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/i2c/busses/i2c-mpc.c