Commit 4bc6eb95 authored by Roman Bacik's avatar Roman Bacik Committed by Zheng Zengkai
Browse files

i2c: iproc: handle invalid slave state

stable inclusion
from stable-v6.6.2
commit b925c9de46870853476456140cf2314c7fbcb667
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8IW7G

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=b925c9de46870853476456140cf2314c7fbcb667



--------------------------------

[ Upstream commit ba15a14399c262f91ce30c19fcbdc952262dd1be ]

Add the code to handle an invalid state when both bits S_RX_EVENT
(indicating a transaction) and S_START_BUSY (indicating the end
of transaction - transition of START_BUSY from 1 to 0) are set in
the interrupt status register during a slave read.

Signed-off-by: default avatarRoman Bacik <roman.bacik@broadcom.com>
Fixes: 1ca1b451 ("i2c: iproc: handle Master aborted error")
Acked-by: default avatarRay Jui <ray.jui@broadcom.com>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent f0c39a01
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment