]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i2c: hisi: Avoid redundant interrupts
authorYicong Yang <yangyicong@hisilicon.com>
Mon, 13 Mar 2023 07:45:51 +0000 (15:45 +0800)
committerWolfram Sang <wsa@kernel.org>
Thu, 16 Mar 2023 20:00:47 +0000 (21:00 +0100)
commitcc9812a3096d1986caca9a23bee99effc45c08df
tree1c60609d4f594ba24d334cbcf9e16a285833834e
parent5190417bdf72c71b65bd9892103c6186816a6e8b
i2c: hisi: Avoid redundant interrupts

After issuing all the messages we can disable the TX_EMPTY interrupts
to avoid handling redundant interrupts. For doing a sinlge bus
detection (i2cdetect -y -r 0) we can reduce ~97% interrupts (before
~12000 after ~400).

Signed-off-by: Sheng Feng <fengsheng5@huawei.com>
Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-hisi.c