[PATCH] i2c: mediatek: move dma reset before i2c reset

Wolfram Sang wsa at the-dreams.de
Tue Nov 3 16:13:12 EST 2020


On Fri, Oct 30, 2020 at 07:58:01PM +0800, qii.wang at mediatek.com wrote:
> From: Qii Wang <qii.wang at mediatek.com>
> 
> 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 at mediatek.com>

Applied to for-current, thanks!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-mediatek/attachments/20201103/c3a6b0e7/attachment.sig>


More information about the Linux-mediatek mailing list