summaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-mt65xx.c
diff options
context:
space:
mode:
authorQii Wang <qii.wang@mediatek.com>2021-04-17 08:46:51 +0200
committerWolfram Sang <wsa@kernel.org>2021-04-17 22:06:24 +0200
commit3186b880447ad3cc9b6487fa626a71d64b831524 (patch)
treed2e594f48b19704d4241eda199a20078f8ac003b /drivers/i2c/busses/i2c-mt65xx.c
parenti2c: mediatek: Fix send master code at more than 1MHz (diff)
downloadlinux-3186b880447ad3cc9b6487fa626a71d64b831524.tar.xz
linux-3186b880447ad3cc9b6487fa626a71d64b831524.zip
i2c: mediatek: Fix wrong dma sync flag
The right flag is apdma_sync when apdma remove hand-shake signel. Fixes: 05f6f7271a38 ("i2c: mediatek: Fix apdma and i2c hand-shake timeout") Signed-off-by: Qii Wang <qii.wang@mediatek.com> Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'drivers/i2c/busses/i2c-mt65xx.c')
-rw-r--r--drivers/i2c/busses/i2c-mt65xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-mt65xx.c b/drivers/i2c/busses/i2c-mt65xx.c
index 3e3426155450..bf25acba2ed5 100644
--- a/drivers/i2c/busses/i2c-mt65xx.c
+++ b/drivers/i2c/busses/i2c-mt65xx.c
@@ -479,7 +479,7 @@ static void mtk_i2c_init_hw(struct mtk_i2c *i2c)
{
u16 control_reg;
- if (i2c->dev_comp->dma_sync) {
+ if (i2c->dev_comp->apdma_sync) {
writel(I2C_DMA_WARM_RST, i2c->pdmabase + OFFSET_RST);
udelay(10);
writel(I2C_DMA_CLR_FLAG, i2c->pdmabase + OFFSET_RST);