mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-25 20:10:23 +09:00
i2c: mediatek: Fix wrong dma sync flag
[ Upstream commit3186b88044] The right flag is apdma_sync when apdma remove hand-shake signel. Fixes:05f6f7271a("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
232598e99f
commit
87299aad62
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user