]> git.baikalelectronics.ru Git - 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)
committerWolfram Sang <wsa@kernel.org>
Tue, 30 Nov 2021 09:22:07 +0000 (10:22 +0100)
commitdd80638ec3300d4b5056cd5d8fa9c72c241d05a2
tree2abad6bc8b5756ae373c9195e2be7589d1e70247
parent9947f77714e343098727edce0175d52a25aaaee7
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: 21bf57cb8ec0 ("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