i2c: iproc: handle only slave interrupts which are enabled
authorRayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>
Mon, 2 Nov 2020 03:54:29 +0000 (09:24 +0530)
committerWolfram Sang <wsa@kernel.org>
Tue, 5 Jan 2021 16:15:43 +0000 (17:15 +0100)
commit545f4011e156554d704d6278245d54543f6680d1
tree3594ec85a047f312a95e2d109e175cf24c11c058
parent1ca1b4516088c4e275e47efd3cb243023388753c
i2c: iproc: handle only slave interrupts which are enabled

Handle only slave interrupts which are enabled.

The IS_OFFSET register contains the interrupt status bits which will be
set regardless of the enabling of the corresponding interrupt condition.
One must therefore look at both IS_OFFSET and IE_OFFSET to determine
whether an interrupt condition is set and enabled.

Fixes: c245d94ed106 ("i2c: iproc: Add multi byte read-write support for slave mode")
Signed-off-by: Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>
Acked-by: Ray Jui <ray.jui@broadcom.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-bcm-iproc.c