aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic-2.4/patches/208-usb2_fix.patch
blob: fe6b10dfd20fbd3a6764c7602c5d51a9598c91c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Index: linux-2.4.35.4/drivers/usb/host/ehci-q.c
===================================================================
--- linux-2.4.35.4.orig/drivers/usb/host/ehci-q.c	2007-12-15 05:19:39.114650056 +0100
+++ linux-2.4.35.4/drivers/usb/host/ehci-q.c	2007-12-15 05:20:00.107846389 +0100
@@ -782,6 +782,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;