OSDN Git Service

USB: allow usbstorage to have LUNS greater than 2Tb
[sagit-ice-cold/kernel_xiaomi_msm8998.git] / drivers / usb / storage / usb.c
index 5918166..3451e8d 100644 (file)
@@ -960,6 +960,10 @@ static int storage_probe(struct usb_interface *intf,
                return -ENOMEM;
        }
 
+       /*
+        * Allow 16-byte CDBs and thus > 2TB
+        */
+       host->max_cmd_len = 16;
        us = host_to_us(host);
        memset(us, 0, sizeof(struct us_data));
        mutex_init(&(us->dev_mutex));