[kernel] add patch from #4850 to make hdparm work on usb drivers (#4850)
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 25 Jul 2009 18:17:07 +0000 (18:17 +0000)
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 25 Jul 2009 18:17:07 +0000 (18:17 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16978 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/generic-2.4/patches/229-usb_storage_16_byte_cdb.patch [new file with mode: 0644]

diff --git a/target/linux/generic-2.4/patches/229-usb_storage_16_byte_cdb.patch b/target/linux/generic-2.4/patches/229-usb_storage_16_byte_cdb.patch
new file mode 100644 (file)
index 0000000..d04e102
--- /dev/null
@@ -0,0 +1,14 @@
+--- a/drivers/usb/storage/scsiglue.c.old       2009-03-30 09:08:02.000000000 +0200
++++ b/drivers/usb/storage/scsiglue.c   2009-03-30 09:02:53.000000000 +0200
+@@ -95,6 +95,11 @@
+       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;
+       }
This page took 0.019933 seconds and 4 git commands to generate.