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)
committerWolfram Sang <wsa@kernel.org>
Tue, 5 Jan 2021 09:54:37 +0000 (10:54 +0100)
commit05f6f7271a38c482c5021967433f7b698e102c45
tree0db2900b6713e048dbf8afb2b9e4bcf8172d8d91
parent0b3ea2a06de1f52ea30865e227e109a5fd3b6214
i2c: mediatek: Fix apdma and i2c hand-shake timeout

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>
drivers/i2c/busses/i2c-mt65xx.c