Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Mauro Carvalho Chehab and committed by
Greg Kroah-Hartman
f09e495d 9e3285db

+4
+4
drivers/usb/storage/scsiglue.c
··· 177 177 * is an occasional series of retries that will all fail. */ 178 178 sdev->retry_hwerror = 1; 179 179 180 + /* USB disks should allow restart. Some drives spin down 181 + * automatically, requiring a START-STOP UNIT command. */ 182 + sdev->allow_restart = 1; 183 + 180 184 } else { 181 185 182 186 /* Non-disk-type devices don't need to blacklist any pages