OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
USB: allow usbstorage to have LUNS greater than 2Tb
[sagit-ice-cold/kernel_xiaomi_msm8998.git]
/
drivers
/
usb
/
storage
/
usb.c
diff --git
a/drivers/usb/storage/usb.c
b/drivers/usb/storage/usb.c
index
5918166
..
3451e8d
100644
(file)
--- a/
drivers/usb/storage/usb.c
+++ b/
drivers/usb/storage/usb.c
@@
-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));