]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i2c: pasemi: Enable the unjam machine
authorHector Martin <marcan@marcan.st>
Sun, 27 Apr 2025 11:30:43 +0000 (11:30 +0000)
committerAndi Shyti <andi@smida.it>
Mon, 19 May 2025 20:23:56 +0000 (22:23 +0200)
commit88fe3078b54c9efaea7d1adfcf295e37dfb0274f
tree19a8c8eca2a520a2e05c8ce3a779e0528fb10da8
parent25909e19c22b0f5a78bc7667598f849c86af91bd
i2c: pasemi: Enable the unjam machine

The I2C bus can get stuck under some conditions (desync between
controller and device). The pasemi controllers include an unjam feature
that is enabled on reset, but was being disabled by the driver. Keep it
enabled by explicitly setting the UJM bit in the CTL register. This
should help recover the bus from certain conditions, which would
otherwise remain stuck forever.

Signed-off-by: Hector Martin <marcan@marcan.st>
Reviewed-by: Neal Gompa <neal@gompa.dev>
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Signed-off-by: Sven Peter <sven@svenpeter.dev>
Link: https://lore.kernel.org/r/20250427-pasemi-fixes-v3-1-af28568296c0@svenpeter.dev
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/busses/i2c-pasemi-core.c