[PATCH v6 7/7] i2c: mediatek: modify bus speed calculation formula

Qii Wang qii.wang at mediatek.com
Wed Sep 1 02:35:32 PDT 2021


On Sat, 2021-08-28 at 18:50 +0800, Kewei Xu wrote:
> When clock-div is 0 or greater than 1, the bus speed
> calculated by the old speed calculation formula will be
> larger than the target speed. So we update the formula.
> 
> Signed-off-by: Kewei Xu <kewei.xu at mediatek.com>
> ---
>  drivers/i2c/busses/i2c-mt65xx.c | 35 +++++++++++++++++++++++++----------
>  1 file changed, 25 insertions(+), 10 deletions(-)
> 

Reviewed-by: Qii Wang <qii.wang at mediatek.com>


More information about the Linux-mediatek mailing list