]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: i2c-stm32f7: improve loopback in timing algorithm
authorNicolas Le Bayon <nicolas.le.bayon@st.com>
Wed, 6 Mar 2019 15:12:32 +0000 (15:12 +0000)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 20 Mar 2019 16:59:05 +0000 (17:59 +0100)
commit7494eaa5ca4d0c2ee4f0c3f38eb3d48bf056fd7b
tree9d9416a508c9b04434bf2bffbca6687e79d3ac58
parentdd31dff0282db3bf0d352f0c1f9116d1e4ce555f
i2c: i2c-stm32f7: improve loopback in timing algorithm

This avoids useless loops inside the I2C timing algorithm.
Actually, we support only one possible solution per prescaler value.
So after finding a solution with a prescaler, the algorithm can
switch directly to the next prescaler value.

Signed-off-by: Nicolas Le Bayon <nicolas.le.bayon@st.com>
Signed-off-by: Bich Hemon <bich.hemon@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