]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: omap: Fix standard mode false ACK readings
authorReid Tonking <reidt@ti.com>
Wed, 26 Apr 2023 19:49:56 +0000 (14:49 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 09:35:33 +0000 (11:35 +0200)
commitda713f464e7657e2f6ae2483457b706f211f46b6
treea4ab008b21f648e5ba436e9caf5719cdaa4f177c
parent01a64e131ee2303cc34c857ae34480a3f3242a41
i2c: omap: Fix standard mode false ACK readings

commit c770657bd2611b077ec1e7b1fe6aa92f249399bd upstream.

Using standard mode, rare false ACK responses were appearing with
i2cdetect tool. This was happening due to NACK interrupt triggering
ISR thread before register access interrupt was ready. Removing the
NACK interrupt's ability to trigger ISR thread lets register access
ready interrupt do this instead.

Cc: <stable@vger.kernel.org> # v3.7+
Fixes: 87cb23bbc5c8 ("i2c: omap: switch to threaded IRQ support")
Signed-off-by: Reid Tonking <reidt@ti.com>
Acked-by: Vignesh Raghavendra <vigneshr@ti.com>
Reviewed-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/i2c/busses/i2c-omap.c