]> git.baikalelectronics.ru Git - kernel.git/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)
committerWolfram Sang <wsa@kernel.org>
Tue, 5 Jan 2021 09:54:37 +0000 (10:54 +0100)
commitc8f66890f41024ad8e9303a448c2d93f9c657d73
tree0db2900b6713e048dbf8afb2b9e4bcf8172d8d91
parent615058d7e6b6d5aeb4e349db8e4060e32a6bf886
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: 360120e41473("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