summaryrefslogtreecommitdiff
path: root/target/linux/generic-2.4/patches/229-usb_storage_16_byte_cdb.patch
blob: f14abbb489b41a61d9978141999a921b9ab57395 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- 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;
 	}