aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/storage/usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/storage/usb.c')
-rw-r--r--drivers/usb/storage/usb.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/usb/storage/usb.c b/drivers/usb/storage/usb.c
index 5600c33fcadb..6c10c888f35f 100644
--- a/drivers/usb/storage/usb.c
+++ b/drivers/usb/storage/usb.c
@@ -479,7 +479,8 @@ void usb_stor_adjust_quirks(struct usb_device *udev, unsigned long *fflags)
479 US_FL_SINGLE_LUN | US_FL_NO_WP_DETECT | 479 US_FL_SINGLE_LUN | US_FL_NO_WP_DETECT |
480 US_FL_NO_READ_DISC_INFO | US_FL_NO_READ_CAPACITY_16 | 480 US_FL_NO_READ_DISC_INFO | US_FL_NO_READ_CAPACITY_16 |
481 US_FL_INITIAL_READ10 | US_FL_WRITE_CACHE | 481 US_FL_INITIAL_READ10 | US_FL_WRITE_CACHE |
482 US_FL_NO_ATA_1X | US_FL_NO_REPORT_OPCODES); 482 US_FL_NO_ATA_1X | US_FL_NO_REPORT_OPCODES |
483 US_FL_MAX_SECTORS_240);
483 484
484 p = quirks; 485 p = quirks;
485 while (*p) { 486 while (*p) {
@@ -520,6 +521,9 @@ void usb_stor_adjust_quirks(struct usb_device *udev, unsigned long *fflags)
520 case 'f': 521 case 'f':
521 f |= US_FL_NO_REPORT_OPCODES; 522 f |= US_FL_NO_REPORT_OPCODES;
522 break; 523 break;
524 case 'g':
525 f |= US_FL_MAX_SECTORS_240;
526 break;
523 case 'h': 527 case 'h':
524 f |= US_FL_CAPACITY_HEURISTICS; 528 f |= US_FL_CAPACITY_HEURISTICS;
525 break; 529 break;
@@ -1080,7 +1084,7 @@ static int storage_probe(struct usb_interface *intf,
1080 1084
1081 /* If uas is enabled and this device can do uas then ignore it. */ 1085 /* If uas is enabled and this device can do uas then ignore it. */
1082#if IS_ENABLED(CONFIG_USB_UAS) 1086#if IS_ENABLED(CONFIG_USB_UAS)
1083 if (uas_use_uas_driver(intf, id)) 1087 if (uas_use_uas_driver(intf, id, NULL))
1084 return -ENXIO; 1088 return -ENXIO;
1085#endif 1089#endif
1086 1090