]> git.baikalelectronics.ru Git - uboot.git/commit
i2c: stm32f7: improve loopback in timing algorithm
authorNicolas Le Bayon <nicolas.le.bayon@st.com>
Thu, 18 Apr 2019 15:32:43 +0000 (17:32 +0200)
committerPatrice Chotard <patrice.chotard@st.com>
Thu, 23 May 2019 09:36:47 +0000 (11:36 +0200)
commit73ff73bd3f98d0f9182ab637c8ca738fbbb9dcf3
tree3a1dcc7efd69321a818bfedec9c351fa2924e084
parentf95e28b45d56f35d64c4777588806351a2ea2a6d
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>
Reviewed-by: Patrick DELAUNAY <patrick.delaunay@st.com>
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
drivers/i2c/stm32f7_i2c.c