]> www.infradead.org Git - users/hch/xfs.git/commit
i2c: microchip-core: actually use repeated sends
authorConor Dooley <conor.dooley@microchip.com>
Wed, 18 Dec 2024 12:07:40 +0000 (12:07 +0000)
committerAndi Shyti <andi.shyti@kernel.org>
Thu, 26 Dec 2024 00:54:47 +0000 (01:54 +0100)
commit9a8f9320d67b27ddd7f1ee88d91820197a0e908f
tree34b60943474b5863bc13acf9e0304923f64d7072
parente0cec363197e41af870613e8e17b30bf0e3d41b5
i2c: microchip-core: actually use repeated sends

At present, where repeated sends are intended to be used, the
i2c-microchip-core driver sends a stop followed by a start. Lots of i2c
devices must not malfunction in the face of this behaviour, because the
driver has operated like this for years! Try to keep track of whether or
not a repeated send is required, and suppress sending a stop in these
cases.

CC: stable@vger.kernel.org
Fixes: 64a6f1c4987e ("i2c: add support for microchip fpga i2c controllers")
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20241218-football-composure-e56df2461461@spud
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/busses/i2c-microchip-corei2c.c