Skip to content
Commit a0de3f29 authored by Yicong Yang's avatar Yicong Yang Committed by Greg Kroah-Hartman
Browse files

i2c: hisi: Only use the completion interrupt to finish the transfer



[ Upstream commit d9826351 ]

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.

Fixes: d62fbdb9 ("i2c: add support for HiSilicon I2C controller")
Reported-by: default avatarSheng Feng <fengsheng5@huawei.com>
Signed-off-by: default avatarSheng Feng <fengsheng5@huawei.com>
Signed-off-by: default avatarYicong Yang <yangyicong@hisilicon.com>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent d6ea83a4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment