]> git.itanic.dy.fi Git - linux-stable/commit
i2c: mediatek: Fix apdma and i2c hand-shake timeout
authorQii Wang <qii.wang@mediatek.com>
Thu, 24 Dec 2020 12:26:07 +0000 (20:26 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 17 Jan 2021 13:17:01 +0000 (14:17 +0100)
commit8f243682e5ed71c997665ecf25bafa1ff0e0bd1d
tree9133b79fca928c30910c35fb26f32f08cd072c03
parentd908dd5c1064357d8176dfc0a58e541d4c71b690
i2c: mediatek: Fix apdma and i2c hand-shake timeout

commit 05f6f7271a38c482c5021967433f7b698e102c45 upstream.

With the apdma remove hand-shake signal, it requirs special
operation timing to reset i2c manually, otherwise the interrupt
will not be triggered, i2c transmission will be timeout.

Fixes: 8426fe70cfa4("i2c: mediatek: Add apdma sync in i2c driver")
Signed-off-by: Qii Wang <qii.wang@mediatek.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/i2c/busses/i2c-mt65xx.c