i2c: mediatek: Dump i2c/dma register when a timeout occurs
authorKewei Xu <kewei.xu@mediatek.com>
Sun, 10 Oct 2021 07:05:13 +0000 (15:05 +0800)
committerWolfram Sang <wsa@kernel.org>
Mon, 11 Oct 2021 10:40:05 +0000 (12:40 +0200)
commitcc28e578f515f068cd8ee280706b8d8e31c472f9
tree49b2cf59f75da35a418ecfecc288e121b0b270b7
parente3e4949e637d39321cc379ff73a60c26df6410bc
i2c: mediatek: Dump i2c/dma register when a timeout occurs

When a timeout error occurs in i2c transter, it is usually related
to the i2c/dma IP hardware configuration. Therefore, the purpose of
this patch is to dump the key register values of i2c/dma when a
timeout occurs in i2c for debugging.

Signed-off-by: Kewei Xu <kewei.xu@mediatek.com>
Reviewed-by: Qii Wang <qii.wang@mediatek.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-mt65xx.c