From: David Jander Date: Tue, 21 Jun 2022 06:12:28 +0000 (+0200) Subject: spi: Remove check for controller idling in spi sync path X-Git-Tag: v6.6.17~6771^2~30^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d5256cce1f50ff4c8fad6b8eb7b4ec9e47d38925;p=platform%2Fkernel%2Flinux-rpi.git 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 Link: https://lore.kernel.org/r/20220621061234.3626638-6-david@protonic.nl Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index fa2d091..d8d2b7a 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);