]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Aug 2023 12:23:31 +0000 (14:23 +0200)
commit184f1b68bb99b5927ab63aefb4a58ec2f9cc6ca9
tree48d600b61113f0c8320d718f73e6f4ae6bba6ffe
parentc4e671dae50e04e08571b58d818825d8c93df040
i2c: hisi: Only handle the interrupt of the driver's transfer

commit fff67c1b17ee093947bdcbac6f64d072e644159a upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/i2c/busses/i2c-hisi.c