Skip to content
Commit 696e470e authored by Marek Vasut's avatar Marek Vasut Committed by Greg Kroah-Hartman
Browse files

i2c: xiic: Defer xiic_wakeup() and __xiic_start_xfer() in xiic_process()



[ Upstream commit 743e227a ]

The __xiic_start_xfer() manipulates the interrupt flags, xiic_wakeup()
may result in return from xiic_xfer() early. Defer both to the end of
the xiic_process() interrupt thread, so that they are executed after
all the other interrupt bits handling completed and once it completely
safe to perform changes to the interrupt bits in the hardware.

Signed-off-by: default avatarMarek Vasut <marex@denx.de>
Acked-by: default avatarMichal Simek <michal.simek@xilinx.com>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
Stable-dep-of: cb6e45c9 ("i2c: xiic: Don't try to handle more interrupt events after error")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 49896271
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