]> git.ipfire.org Git - thirdparty/linux.git/commit
i2c: mediatek: fix WRRD for SoCs without auto_restart option
authorRoman Vivchar <rva333@protonmail.com>
Thu, 9 Jul 2026 13:31:29 +0000 (16:31 +0300)
committerAndi Shyti <andi.shyti@kernel.org>
Tue, 14 Jul 2026 22:21:51 +0000 (00:21 +0200)
commitdeb35336b5bfed5db9231b5348bc1514db930797
tree6917bebe85e548c4d67f39c4f0dbc687841900d4
parent71356737a7a55c76fee847563e3d33f8e6dc6b6d
i2c: mediatek: fix WRRD for SoCs without auto_restart option

MediaTek mt65xx family SoCs have no auto restart, however, they still
support the WRRD mode in the hardware. Because auto_restart is set to 0,
the WRRD mode will be never enabled, leading to read errors.

Fix this by removing auto_restart check from the WRRD enable path.

Fixes: b49218365280 ("i2c: mediatek: fix potential incorrect use of I2C_MASTER_WRRD")
Signed-off-by: Roman Vivchar <rva333@protonmail.com>
Cc: <stable@vger.kernel.org> # v6.18+
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20260709-6572-6595-i2c-v2-1-b2fb8510d1d3@protonmail.com
drivers/i2c/busses/i2c-mt65xx.c