diff options
author | David Jander <david@protonic.nl> | 2022-06-21 08:12:28 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-06-27 14:27:20 +0200 |
commit | d5256cce1f50ff4c8fad6b8eb7b4ec9e47d38925 (patch) | |
tree | edc40e199565519fd5c008f77e7b0b6ac7efa1b9 /drivers/spi | |
parent | spi: __spi_pump_messages: Consolidate spin_unlocks to goto target (diff) | |
download | linux-d5256cce1f50ff4c8fad6b8eb7b4ec9e47d38925.tar.xz linux-d5256cce1f50ff4c8fad6b8eb7b4ec9e47d38925.zip |
spi: Remove check for controller idling in spi sync path
Now that the idling flag is wholly behind the io_mutex, this broken piece
of code can be safely removed.
Signed-off-by: David Jander <david@protonic.nl>
Link: https://lore.kernel.org/r/20220621061234.3626638-6-david@protonic.nl
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index fa2d091d2854..d8d2b7ac78f2 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -3964,10 +3964,6 @@ static void __spi_transfer_message_noqueue(struct spi_controller *ctlr, struct s mutex_lock(&ctlr->io_mutex); - /* If another context is idling the device then wait */ - while (ctlr->idling) - usleep_range(10000, 11000); - was_busy = READ_ONCE(ctlr->busy); ret = __spi_pump_transfer_message(ctlr, msg, was_busy); |