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)
committerWolfram Sang <wsa@kernel.org>
Tue, 30 Nov 2021 09:22:07 +0000 (10:22 +0100)
commitb933d1faf8fa30d16171bcff404e39c41b2a7c84
tree2abad6bc8b5756ae373c9195e2be7589d1e70247
parent0c21d02ca469574d2082379db52d1a27b99eed0c
i2c: stm32f7: recover the bus on access timeout

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>
drivers/i2c/busses/i2c-stm32f7.c