]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
spi: spi-zynqmp-gqspi: add mutex locking for exec_op
authorQuanyang Wang <quanyang.wang@windriver.com>
Thu, 8 Apr 2021 04:02:21 +0000 (12:02 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 May 2021 08:49:47 +0000 (10:49 +0200)
commit1b2ae6024b0e0b6e3be3ebadb8c7cac1b190d015
tree337a875cd44f96ad66806d8a52e6106b85b3308b
parent9dfc6283685c120beb74a893db9dad55364c4331
spi: spi-zynqmp-gqspi: add mutex locking for exec_op

[ Upstream commit a0f65be6e880a14d3445b75e7dc03d7d015fc922 ]

The spi-mem framework has no locking to prevent ctlr->mem_ops->exec_op
from concurrency. So add the locking to zynqmp_qspi_exec_op.

Fixes: 1c26372e5aa9 ("spi: spi-zynqmp-gqspi: Update driver to use spi-mem framework")
Signed-off-by: Quanyang Wang <quanyang.wang@windriver.com>
Reviewed-by: Amit Kumar Mahapatra <amit.kumar-mahapatra@xilinx.com>
Link: https://lore.kernel.org/r/20210408040223.23134-3-quanyang.wang@windriver.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-zynqmp-gqspi.c