On Tuesday 26 October 2004 11:15, David Brownell wrote:
> These mostly make the root hub autosuspend logic use the
> usbcore logic more directly.  Please merge; this relies on some
> symbols exported from usbcore by a previous patch.

Grr, now I remember why I didn't do it that way in the first
place; that breaks locking on SMP.  Don't merge that version.

Instead, please merge this ... it just fixes the resume
path.  Not minor; essential for resume-from-unpowered.

- Dave
This marks the controller as running at the end of a "resume" path used
when the controller lost power, or was otherwise reset (not a real resume).

Signed-off-by: David Brownell <[EMAIL PROTECTED]>


--- a/drivers/usb/host/ohci-hcd.c	2004-10-26 09:58:17 -07:00
+++ b/drivers/usb/host/ohci-hcd.c	2004-10-26 09:58:17 -07:00
@@ -863,6 +863,7 @@
 			writel (RH_PS_PSS,
 				&ohci->regs->roothub.portstatus [temp]);
 		ohci_dbg (ohci, "restart complete\n");
+		ohci->hcd.state = USB_STATE_RUNNING;
 	}
 	return 0;
 }

Reply via email to