linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* READ_CAPACITY_16 vs. READ_CAPACITY_10
@ 2013-09-10 13:56 Oliver Neukum
  2013-09-10 17:25 ` Alan Stern
  2013-09-12  5:56 ` Hannes Reinecke
  0 siblings, 2 replies; 10+ messages in thread
From: Oliver Neukum @ 2013-09-10 13:56 UTC (permalink / raw)
  To: hare; +Cc: Alan Stern, linux-scsi

Hi Hannes,

you objected to this patch saying there's a possibilty that
HS devices may also need this feature, which would require
a quirk. Does this mean that the patch is acceptable only
with an additional predefined quirk, or do you insist that all
devices be handled with quirks?

	Regards
		Oliver

+++ b/drivers/usb/storage/scsiglue.c
@@ -211,8 +211,11 @@ static int slave_configure(struct
scsi_device0*sdev)
 		/*
 		 * Many devices do not respond properly to READ_CAPACITY_16.
 		 * Tell the SCSI layer to try READ_CAPACITY_10 first.
+		 * However some USB 3.0 drive enclosures return capacity
+		 * modulo 2TB
 		 */
-		sdev->try_rc_10_first = 1;
+		if (us->pusb_dev->speed < USB_SPEED_SUPER)
+			sdev->try_rc_10_first = 1;
 
 		/* assume SPC3 or latter devices support sense size > 18 */
 		if (sdev->scsi_level > SCSI_SPC_2)


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-09-16 12:41 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-10 13:56 READ_CAPACITY_16 vs. READ_CAPACITY_10 Oliver Neukum
2013-09-10 17:25 ` Alan Stern
2013-09-10 20:44   ` Oliver Neukum
2013-09-11 14:14     ` Alan Stern
2013-09-11 15:05       ` Oliver Neukum
2013-09-11 15:42         ` Alan Stern
2013-09-11 15:56           ` Steve Magnani
2013-09-12  5:47       ` Hannes Reinecke
2013-09-16 12:41         ` Oliver Neukum
2013-09-12  5:56 ` Hannes Reinecke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).