diff options
author | Felix Fietkau <nbd@openwrt.org> | 2005-08-30 22:40:51 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2005-08-30 22:40:51 +0000 |
commit | dd9bc6cce05dc0f3c0346eb42730015cf2a9eba2 (patch) | |
tree | 7d73e5df7832ae44c3480b835e5730c7946a2cf8 /openwrt | |
parent | bc5d0f4c3c23264732826cb28c52edd4a7725b9f (diff) | |
download | mtk-20170518-dd9bc6cce05dc0f3c0346eb42730015cf2a9eba2.zip mtk-20170518-dd9bc6cce05dc0f3c0346eb42730015cf2a9eba2.tar.gz mtk-20170518-dd9bc6cce05dc0f3c0346eb42730015cf2a9eba2.tar.bz2 |
add fix for usb2 data corruption
SVN-Revision: 1805
Diffstat (limited to 'openwrt')
-rw-r--r-- | openwrt/target/linux/linux-2.4/patches/generic/208-usb2_fix.patch | 15 |
1 files changed, 15 insertions, 0 deletions
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 0000000..f8e5be1 --- /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; |