[PATCH] i2c: mediatek: Disable i2c start_en and clear intr_stat brfore reset

Wolfram Sang wsa at the-dreams.de
Thu May 27 13:14:56 PDT 2021


On Thu, May 27, 2021 at 08:04:04PM +0800, qii.wang at mediatek.com wrote:
> From: Qii Wang <qii.wang at mediatek.com>
> 
> 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.
> 
> Signed-off-by: Qii Wang <qii.wang at mediatek.com>

Is there a suitable Fixes tag for this?

-------------- 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/20210527/d08c00d2/attachment.sig>


More information about the Linux-mediatek mailing list