]> git.baikalelectronics.ru Git - kernel.git/commit
spi: spi-bcm2835: Fix deadlock
authorAlexandru Tachici <alexandru.tachici@analog.com>
Fri, 16 Jul 2021 21:02:45 +0000 (00:02 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 20 Jul 2021 12:34:05 +0000 (13:34 +0100)
commitc45c1e82bba130db4f19d9dbc1deefcf4ea994ed
treedd15941be1c4c27dc22ae6b6721affdadb590c85
parent56912da7a68c8356df6a6740476237441b0b792a
spi: spi-bcm2835: Fix deadlock

The bcm2835_spi_transfer_one function can create a deadlock
if it is called while another thread already has the
CCF lock.

Signed-off-by: Alexandru Tachici <alexandru.tachici@analog.com>
Fixes: f8043872e796 ("spi: add driver for BCM2835")
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20210716210245.13240-2-alexandru.tachici@analog.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-bcm2835.c