]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 30 Oct 2023 11:00:15 +0000 (12:00 +0100)
commit6eaf18cc8d6d258c0a50124c0fdd08fdb4f5fe78
treebbacd1fb2a8667256c02e98e679c9ce0d2f1e077
parenteddeaef73ca02ebaec60cd516615e4c85078a666
i2c: hisi: Only handle the interrupt of the driver's transfer

BugLink: https://bugs.launchpad.net/bugs/2039110
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/i2c/busses/i2c-hisi.c