]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Apr 2023 10:35:11 +0000 (12:35 +0200)
commita1cfba54130066bc89764ab6adcad8ef952eb12b
tree2bd5c5de0a7e77f08b0970d7c06fc9fb804d1dca
parentbd51c04b7e188e06ed09fa3e48bc65f57307ce50
i2c: hisi: Avoid redundant interrupts

[ Upstream commit cc9812a3096d1986caca9a23bee99effc45c08df ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/i2c/busses/i2c-hisi.c