Commit 30def367 authored by Marek Vasut's avatar Marek Vasut Committed by Greg Kroah-Hartman
Browse files

i2c: xiic: Switch from waitqueue to completion



[ Upstream commit fdacc3c7 ]

There will never be threads queueing up in the xiic_xmit(), use
completion synchronization primitive to wait for the interrupt
handler thread to complete instead as it is much better fit and
there is no need to overload it for this purpose.

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: 1d4a1adb ("i2c: xiic: Try re-initialization on bus busy timeout")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 6da4bbeb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment