diff options
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/storage/scsiglue.c | 6 | ||||
-rw-r--r-- | drivers/usb/storage/unusual_devs.h | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/drivers/usb/storage/scsiglue.c b/drivers/usb/storage/scsiglue.c index 70234f5dbeeb..e227f64d5641 100644 --- a/drivers/usb/storage/scsiglue.c +++ b/drivers/usb/storage/scsiglue.c | |||
@@ -153,6 +153,12 @@ static int slave_configure(struct scsi_device *sdev) | |||
153 | if (us->flags & US_FL_FIX_CAPACITY) | 153 | if (us->flags & US_FL_FIX_CAPACITY) |
154 | sdev->fix_capacity = 1; | 154 | sdev->fix_capacity = 1; |
155 | 155 | ||
156 | /* A few disks have two indistinguishable version, one of | ||
157 | * which reports the correct capacity and the other does not. | ||
158 | * The sd driver has to guess which is the case. */ | ||
159 | if (us->flags & US_FL_CAPACITY_HEURISTICS) | ||
160 | sdev->guess_capacity = 1; | ||
161 | |||
156 | /* Some devices report a SCSI revision level above 2 but are | 162 | /* Some devices report a SCSI revision level above 2 but are |
157 | * unable to handle the REPORT LUNS command (for which | 163 | * unable to handle the REPORT LUNS command (for which |
158 | * support is mandatory at level 3). Since we already have | 164 | * support is mandatory at level 3). Since we already have |
diff --git a/drivers/usb/storage/unusual_devs.h b/drivers/usb/storage/unusual_devs.h index bab054b8d94f..568366569769 100644 --- a/drivers/usb/storage/unusual_devs.h +++ b/drivers/usb/storage/unusual_devs.h | |||
@@ -1434,7 +1434,7 @@ UNUSUAL_DEV( 0xed06, 0x4500, 0x0001, 0x0001, | |||
1434 | "DataStor", | 1434 | "DataStor", |
1435 | "USB4500 FW1.04", | 1435 | "USB4500 FW1.04", |
1436 | US_SC_DEVICE, US_PR_DEVICE, NULL, | 1436 | US_SC_DEVICE, US_PR_DEVICE, NULL, |
1437 | US_FL_FIX_CAPACITY), | 1437 | US_FL_CAPACITY_HEURISTICS), |
1438 | 1438 | ||
1439 | /* Control/Bulk transport for all SubClass values */ | 1439 | /* Control/Bulk transport for all SubClass values */ |
1440 | USUAL_DEV(US_SC_RBC, US_PR_CB, USB_US_TYPE_STOR), | 1440 | USUAL_DEV(US_SC_RBC, US_PR_CB, USB_US_TYPE_STOR), |