Skip to content

Commit

Permalink
[PATCH] USB: ehci fix driver model wakeup flags
Browse files Browse the repository at this point in the history
On some systems, EHCI seems to be getting IRQs too early during driver
setup ... before the root hub is allocated, in particular, making trouble
for any code chasing down root hub pointers!  In this case, it seems to
be safe to just ignore the root hub setting.  Thanks to Rafael J. Wysocki
for getting this properly tested.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
David Brownell authored and Greg Kroah-Hartman committed Jan 4, 2006
1 parent 2c1c3c4 commit d97cc2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/host/ehci-hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ static irqreturn_t ehci_irq (struct usb_hcd *hcd, struct pt_regs *regs)
}

/* remote wakeup [4.3.1] */
if ((status & STS_PCD) && device_may_wakeup(&hcd->self.root_hub->dev)) {
if (status & STS_PCD) {
unsigned i = HCS_N_PORTS (ehci->hcs_params);

/* resume root hub? */
Expand Down

0 comments on commit d97cc2f

Please sign in to comment.