Unverified Commit ff28fe48 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!527 i2c: hisi: Only use the completion interrupt to finish the transfer and...

!527 i2c: hisi: Only use the completion interrupt to finish the transfer and i2c: hisi: Avoid redundant interrupts

Merge Pull Request from: @lujunhuaHW 
 
i2c: hisi: Only use the completion interrupt to finish the transfer:
   The controller will always generate a completion interrupt when the
transfer is finished normally or not. Currently we use either error or
completion interrupt to finish, this may result the completion
interrupt unhandled and corrupt the next transfer, especially at low
speed mode. Since on error case, the error interrupt will come first
then is the completion interrupt. So only use the completion interrupt
to finish the whole transfer process.

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).

Test dependencies:i2c-dev.ko i2c-hisi.ko
Test methodology:See the bugzilla link
 
 
Link:https://gitee.com/openeuler/kernel/pulls/527

 

Reviewed-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
parents c0424447 952eeb5d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment