Skip to content

Commit f09e495

Browse files
mchehabgregkh
authored andcommitted
usb-storage: always set the allow_restart flag
This patch (as1000) sets the SCSI allow_restart flag for USB disk devices. In theory this should never hurt, and there definitely are devices out there (such as the Seagate 250-GB external drive) which need the flag to be set. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent 9e3285d commit f09e495

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎drivers/usb/storage/scsiglue.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,10 @@ static int slave_configure(struct scsi_device *sdev)
177177
* is an occasional series of retries that will all fail. */
178178
sdev->retry_hwerror = 1;
179179

180+
/* USB disks should allow restart. Some drives spin down
181+
* automatically, requiring a START-STOP UNIT command. */
182+
sdev->allow_restart = 1;
183+
180184
} else {
181185

182186
/* Non-disk-type devices don't need to blacklist any pages

0 commit comments

Comments
 (0)