Message ID | 1630147859-17031-1-git-send-email-kewei.xu@mediatek.com |
---|---|
Headers | show |
Series | Introducing an attribute to select the time setting | expand |
On Sat, 2021-08-28 at 18:50 +0800, Kewei Xu wrote: > The reason for the modification here is that the previous > offset information is incorrect, OFFSET_DEBUGSTAT = 0xE4 is > the correct value. > > Fixes: 25708278f810 ("i2c: mediatek: Add i2c support for MediaTek MT8183") > Signed-off-by: Kewei Xu <kewei.xu@mediatek.com> > Reviewed-by: Chen-Yu Tsai <wenst@chromium.org> > --- > drivers/i2c/busses/i2c-mt65xx.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Qii Wang <qii.wang@mediatek.com>
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@mediatek.com> > --- > drivers/i2c/busses/i2c-mt65xx.c | 35 +++++++++++++++++++++++++---------- > 1 file changed, 25 insertions(+), 10 deletions(-) > Reviewed-by: Qii Wang <qii.wang@mediatek.com>