diff mbox series

[v6,1/7] i2c: mediatek: fixing the incorrect register offset

Message ID 1630147859-17031-2-git-send-email-kewei.xu@mediatek.com
State Accepted
Commit b8228aea5a19d5111a7bf44f7de6749d1f5d487a
Headers show
Series Introducing an attribute to select the time setting | expand

Commit Message

Kewei Xu Aug. 28, 2021, 10:50 a.m. UTC
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(-)

Comments

Qii Wang (王琪) Aug. 31, 2021, 5:57 a.m. UTC | #1
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>
diff mbox series

Patch

diff --git a/drivers/i2c/busses/i2c-mt65xx.c b/drivers/i2c/busses/i2c-mt65xx.c
index 4ca716e..2661ed0 100644
--- a/drivers/i2c/busses/i2c-mt65xx.c
+++ b/drivers/i2c/busses/i2c-mt65xx.c
@@ -193,7 +193,7 @@  enum I2C_REGS_OFFSET {
 	[OFFSET_CLOCK_DIV] = 0x48,
 	[OFFSET_SOFTRESET] = 0x50,
 	[OFFSET_SCL_MIS_COMP_POINT] = 0x90,
-	[OFFSET_DEBUGSTAT] = 0xe0,
+	[OFFSET_DEBUGSTAT] = 0xe4,
 	[OFFSET_DEBUGCTRL] = 0xe8,
 	[OFFSET_FIFO_STAT] = 0xf4,
 	[OFFSET_FIFO_THRESH] = 0xf8,