summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-geni-qcom.c
diff options
context:
space:
mode:
authorEddie James <eajames@linux.ibm.com>2021-10-26 22:33:27 +0300
committerMark Brown <broonie@kernel.org>2021-10-27 13:31:27 +0300
commite954af1343f6334bf7e081f2631cc2902d07a0ee (patch)
tree8ace7d35db1fcbdf5ab0c98980cf8703b3243c06 /drivers/spi/spi-geni-qcom.c
parent0b0a281ed7001d4c4f4c47bdc84680c4997761ca (diff)
downloadlinux-e954af1343f6334bf7e081f2631cc2902d07a0ee.tar.xz
spi: fsi: Fix contention in the FSI2SPI engine
There was nothing to protect multiple SPI controllers on the same FSI2SPI device from being accessed through the FSI2SPI device at the same time. For example, multiple writes to the command and data registers might occur for different SPI controllers, resulting in complete chaos in the SPI engine. To prevent this, add a FSI2SPI device level mutex and lock it in the SPI register read and write functions. Fixes: bbb6b2f9865b ("spi: Add FSI-attached SPI controller driver") Signed-off-by: Eddie James <eajames@linux.ibm.com> Link: https://lore.kernel.org/r/20211026193327.52420-1-eajames@linux.ibm.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-geni-qcom.c')
0 files changed, 0 insertions, 0 deletions