diff options
author | Qii Wang <qii.wang@mediatek.com> | 2021-05-27 15:04:04 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2021-05-28 11:13:07 +0300 |
commit | fed1bd51a504eb96caa38b4f13ab138fc169ea75 (patch) | |
tree | 2cc001ac183f789f2690ebd21eb4a9924db18f1d /drivers/i2c/busses/i2c-s3c2410.c | |
parent | e4d8716c3dcec47f1557024add24e1f3c09eb24b (diff) | |
download | linux-fed1bd51a504eb96caa38b4f13ab138fc169ea75.tar.xz |
i2c: mediatek: Disable i2c start_en and clear intr_stat brfore reset
The i2c controller driver do dma reset after transfer timeout,
but sometimes dma reset will trigger an unexpected DMA_ERR irq.
It will cause the i2c controller to continuously send interrupts
to the system and cause soft lock-up. So we need to disable i2c
start_en and clear intr_stat to stop i2c controller before dma
reset when transfer timeout.
Fixes: aafced673c06("i2c: mediatek: move dma reset before i2c reset")
Signed-off-by: Qii Wang <qii.wang@mediatek.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'drivers/i2c/busses/i2c-s3c2410.c')
0 files changed, 0 insertions, 0 deletions