i2c: stm32f7: disable/restore Fast Mode Plus bits in low power modes
authorAlain Volmat <alain.volmat@st.com>
Mon, 2 Mar 2020 11:33:07 +0000 (12:33 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 10 Mar 2020 11:16:47 +0000 (12:16 +0100)
commit3347ea9bafe76305ac5305fc6eebefbc5e046d49
treeba5a8bad65e9eb39f00e07eeb5cf2c886db23d54
parentd31f59eabea120b9ad149691f8314ce1b55a59ba
i2c: stm32f7: disable/restore Fast Mode Plus bits in low power modes

Defer the initial enabling of the Fast Mode Plus bits after the
stm32f7_i2c_setup_timing call in probe function in order to avoid
enabling them if speed is downgraded.
Clear & restore the Fast Mode Plus bits in the suspend/resume
handlers of the driver.

Signed-off-by: Alain Volmat <alain.volmat@st.com>
Reviewed-by: Pierre-Yves MORDRET <pierre-yves.mordret@st.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-stm32f7.c