1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-09-12 12:36:48 +03:00
openwrt-xburst/target/linux/generic-2.4/patches/229-usb_storage_16_byte_cdb.patch
agb ad43258cc7 [generic-2.4] refresh patches
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17553 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-10 10:06:35 +00:00

15 lines
377 B
Diff

--- a/drivers/usb/storage/scsiglue.c
+++ b/drivers/usb/storage/scsiglue.c
@@ -95,6 +95,11 @@ static int detect(struct SHT *sht)
if (us->host) {
us->host->hostdata[0] = (unsigned long)us;
us->host_no = us->host->host_no;
+
+ /* allow 16-byte CDBs as we need it for devices > 2TB
+ and ATA command pass-through */
+ us->host->max_cmd_len = 16;
+
return 1;
}