i2c: hisi: Only handle the interrupt of the driver's transfer
authorYicong Yang <yangyicong@hisilicon.com>
Tue, 1 Aug 2023 12:46:25 +0000 (20:46 +0800)
committerWolfram Sang <wsa@kernel.org>
Mon, 14 Aug 2023 13:39:24 +0000 (15:39 +0200)
commitfff67c1b17ee093947bdcbac6f64d072e644159a
tree12e390d55a8ee8dbf4f2b20470303809579c52ab
parent27ec43c77b5db780a56fc3a6d6de6bf2f74614f7
i2c: hisi: Only handle the interrupt of the driver's transfer

The controller may be shared with other port, for example the firmware.
Handle the interrupt from other sources will cause crash since some
data are not initialized. So only handle the interrupt of the driver's
transfer and discard others.

Fixes: d62fbdb99a85 ("i2c: add support for HiSilicon I2C controller")
Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20230801124625.63587-1-yangyicong@huawei.com
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-hisi.c