Re: [PATCH] i2c: mediatek: move dma reset before i2c reset
From: Wolfram Sang
Date: Tue Nov 03 2020 - 16:14:28 EST
On Fri, Oct 30, 2020 at 07:58:01PM +0800, qii.wang@xxxxxxxxxxxx wrote:
> From: Qii Wang <qii.wang@xxxxxxxxxxxx>
>
> 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@xxxxxxxxxxxx>
Applied to for-current, thanks!
Attachment:
signature.asc
Description: PGP signature