Skip to content
Commit 25564f73 authored by Hu Dou's avatar Hu Dou Committed by Benjamin Cabé
Browse files

drivers: i3c: stm32: fix clock init for i2c fast mode plus



The logic of clock initialization for i2c fast mode (FM) and fast
mode plus (FMP) is as follows:
 1 compute how many system clock cycles for SCL to be low
 2 compute how many system clock cycles for SCL to be high by
   subtracting the low duration computed above from the SCL period
 3 verify the high duration computed in 2 is larger than a minimum
The bug is that the step 3 for the FMP is compared with the
minimum value for FM, and causes it to fail.

The fix corrects the bug.

Signed-off-by: default avatarHu Dou <hugh.dou@gmail.com>
parent f087aa26
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment