i2c: omap: Fix standard mode false ACK readings
authorReid Tonking <reidt@ti.com>
Wed, 26 Apr 2023 19:49:56 +0000 (14:49 -0500)
committerWolfram Sang <wsa@kernel.org>
Wed, 3 May 2023 15:27:21 +0000 (17:27 +0200)
commitc770657bd2611b077ec1e7b1fe6aa92f249399bd
tree534535ac7d04ae6e22aa828c7cbfb1f277c5996d
parent9f855779a3874eee70e9f6be57b5f7774f14e510
i2c: omap: Fix standard mode false ACK readings

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: 3b2f8f82dad7 ("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>
drivers/i2c/busses/i2c-omap.c