Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f09e495d authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab Committed by Greg Kroah-Hartman
Browse files

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: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 9e3285db
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -177,6 +177,10 @@ static int slave_configure(struct scsi_device *sdev)
		 * is an occasional series of retries that will all fail. */
		 * is an occasional series of retries that will all fail. */
		sdev->retry_hwerror = 1;
		sdev->retry_hwerror = 1;


		/* USB disks should allow restart.  Some drives spin down
		 * automatically, requiring a START-STOP UNIT command. */
		sdev->allow_restart = 1;

	} else {
	} else {


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