]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
i2c: stm32f7: recover the bus on access timeout
authorAlain Volmat <alain.volmat@foss.st.com>
Mon, 20 Sep 2021 15:21:30 +0000 (17:21 +0200)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 4 Jan 2022 08:49:08 +0000 (09:49 +0100)
commitd9c98bc5b28b2657bca7bfa9c865db98309505b8
tree0801cd7fca2e7d7e24b600e1012978d596045a20
parentfefe86eb95e29cc9e3854dfd98e3c728f739bcef
i2c: stm32f7: recover the bus on access timeout

BugLink: https://bugs.launchpad.net/bugs/1953731
commit b933d1faf8fa30d16171bcff404e39c41b2a7c84 upstream.

When getting an access timeout, ensure that the bus is in a proper
state prior to returning the error.

Fixes: aeb068c57214 ("i2c: i2c-stm32f7: add driver")
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
Reviewed-by: Pierre-Yves MORDRET <pierre-yves.mordret@foss.st.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/i2c/busses/i2c-stm32f7.c