[PATCH 2/2] i2c: imx-lpi2c: check only for enabled interrupt flags

Wolfram Sang wsa at kernel.org
Thu Mar 16 12:36:24 PDT 2023


On Mon, Jan 30, 2023 at 04:32:47PM +0100, Alexander Stein wrote:
> When reading from I2C, the Tx watermark is set to 0. Unfortunately the
> TDF (transmit data flag) is enabled when Tx FIFO entries is equal or less
> than watermark. So it is set in every case, hence the reset default of 1.
> This results in the MSR_RDF _and_ MSR_TDF flags to be set thus trying
> to send Tx data on a read message.
> Mask the IRQ status to filter for wanted flags only.
> 
> Fixes: a55fa9d0e42e ("i2c: imx-lpi2c: add low power i2c bus driver")
> Signed-off-by: Alexander Stein <alexander.stein at ew.tq-group.com>

Applied to for-current, thanks!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20230316/c88b4445/attachment.sig>


More information about the linux-arm-kernel mailing list