diff options
author | Qii Wang <qii.wang@mediatek.com> | 2020-10-30 14:58:01 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2020-11-04 00:13:10 +0300 |
commit | aafced673c06b7c77040c1df42e2e965be5d0376 (patch) | |
tree | bbbe81b97ed9cbbae60e13a82da46750380d9a28 /drivers/i2c/i2c-boardinfo.c | |
parent | 3cea11cd5e3b00d91caf0b4730194039b45c5891 (diff) | |
download | linux-aafced673c06b7c77040c1df42e2e965be5d0376.tar.xz |
i2c: mediatek: move dma reset before i2c reset
The i2c driver default do dma reset after i2c reset, but sometimes
i2c reset will trigger dma tx2rx, then apdma write data to dram
which has been i2c_put_dma_safe_msg_buf(kfree). Move dma reset
before i2c reset in mtk_i2c_init_hw to fix it.
Signed-off-by: Qii Wang <qii.wang@mediatek.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'drivers/i2c/i2c-boardinfo.c')
0 files changed, 0 insertions, 0 deletions