]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
i2c: xiic: Switch from waitqueue to completion
authorMarek Vasut <marex@denx.de>
Mon, 23 Aug 2021 21:41:43 +0000 (23:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:11:22 +0000 (15:11 +0200)
commitc7ed4ddaa5a236bde32de46266a9b0e55701201d
tree28a868bf1076956d0e2671f2af0108262935634d
parent574d8d0fe424bdee65b934032c2ce9212f0e7b78
i2c: xiic: Switch from waitqueue to completion

[ Upstream commit fdacc3c7405d1fc33c1f2771699a4fc24551e480 ]

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: Marek Vasut <marex@denx.de>
Acked-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Stable-dep-of: 1d4a1adbed25 ("i2c: xiic: Try re-initialization on bus busy timeout")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/i2c/busses/i2c-xiic.c