aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2005-08-30 22:40:51 +0000
committerFelix Fietkau <nbd@openwrt.org>2005-08-30 22:40:51 +0000
commit3225e2d59cf293c5c65ec1e9b01f7477448f150f (patch)
tree2702e6d7a314a478134cc9225cc9befc1a23f046 /target/linux
parentec4e62d7dbd0db16f80592211f44e93187417d62 (diff)
downloadupstream-3225e2d59cf293c5c65ec1e9b01f7477448f150f.tar.gz
upstream-3225e2d59cf293c5c65ec1e9b01f7477448f150f.tar.bz2
upstream-3225e2d59cf293c5c65ec1e9b01f7477448f150f.zip
add fix for usb2 data corruption
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1805 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/linux-2.4/patches/generic/208-usb2_fix.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/target/linux/linux-2.4/patches/generic/208-usb2_fix.patch b/target/linux/linux-2.4/patches/generic/208-usb2_fix.patch
new file mode 100644
index 0000000000..f8e5be12c1
--- /dev/null
+++ b/target/linux/linux-2.4/patches/generic/208-usb2_fix.patch
@@ -0,0 +1,15 @@
+diff -ur linux-2.4.30.dev/drivers/usb/host/ehci-q.c linux-tmp/drivers/usb/host/ehci-q.c
+--- linux-2.4.30.dev/drivers/usb/host/ehci-q.c 2005-01-19 15:10:07.000000000 +0100
++++ linux-tmp/drivers/usb/host/ehci-q.c 2005-03-30 05:11:12.000000000 +0200
+@@ -783,6 +765,11 @@
+ if (!(cmd & CMD_ASE)) {
+ /* in case a clear of CMD_ASE didn't take yet */
+ (void) handshake (&ehci->regs->status, STS_ASS, 0, 150);
++
++ /* force async head to be valid */
++ writel ((u32)ehci->async->qh_dma,
++ &ehci->regs->async_next);
++
+ cmd |= CMD_ASE | CMD_RUN;
+ writel (cmd, &ehci->regs->command);
+ ehci->hcd.state = USB_STATE_RUNNING;