usb: usleep_range is preferred over udelay where wakeup is flexible
[firefly-linux-kernel-4.4.55.git] / drivers / usb / storage / transport.c
index 540add24a12ffa428bda0e7a0db07650ecd29eab..5e67f63b2e462ffc68b5acc1a9f8557828e44489 100644 (file)
@@ -1111,7 +1111,7 @@ int usb_stor_Bulk_transport(struct scsi_cmnd *srb, struct us_data *us)
         * command phase and the data phase.  Some devices need a little
         * more than that, probably because of clock rate inaccuracies. */
        if (unlikely(us->fflags & US_FL_GO_SLOW))
-               udelay(125);
+               usleep_range(125, 150);
 
        if (transfer_length) {
                unsigned int pipe = srb->sc_data_direction == DMA_FROM_DEVICE ?