spi: core: Replace msleep with usleep_range to get more accurate sleep time
PATCH 1/1 spi: core: Replace msleep with usleep_range to get more accurate sleep time
Fixes below checkpatch warning:
WARNING: msleep < 20ms can sleep for up to 20ms; see Documentation/timers/timers-howto.txt
+ msleep(10);
Signed-off-by Axel Lin <[email protected]>
--- drivers/spi/spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/spi.c +1 -1
@@ -1078,7 +1078,7 @@ static int spi_stop_queue(struct spi_master *master)*/ while ((!list_empty (&master->queue) || master->busy) && limit--) {spin_unlock_irqrestore (&master->queue_lock, flags); -msleep (10 ); +usleep_range (10000 ,11000 );spin_lock_irqsave (&master->queue_lock, flags); }
Signature · 8 lines
1.8.1.2 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Mark Brown
AppliedQuoted 3 lines · Axel Lin
Fixes below checkpatch warning:
WARNING: msleep < 20ms can sleep for up to 20ms; seeDocumentation/timers/timers-howto.txt
+ msleep(10);
Applied, thanks, though really we don't care how long the delay is.