From: Felix Fietkau Date: Tue, 30 Aug 2005 22:40:25 +0000 (+0000) Subject: add fix for usb2 data corruption X-Git-Tag: whiterussian_rc4~218 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=fc7cc2017827c99bd86013f25d33584ce97b42da;p=openwrt%2Fsvn-archive%2Fopenwrt.git add fix for usb2 data corruption SVN-Revision: 1804 --- diff --git a/openwrt/target/linux/linux-2.4/patches/generic/208-usb2_fix.patch b/openwrt/target/linux/linux-2.4/patches/generic/208-usb2_fix.patch new file mode 100644 index 0000000000..f8e5be12c1 --- /dev/null +++ b/openwrt/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;