Commit a0499caa authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

Cset exclude: david-b@pacbell.net|ChangeSet|20041112030233|28853

Revert this patch, as a later patch contains it already.
As requested by David Brownell.
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 291fc0eb
......@@ -92,7 +92,6 @@ static int ehci_hub_resume (struct usb_hcd *hcd)
struct usb_device *root = hcd_to_bus (&ehci->hcd)->root_hub;
u32 temp;
int i;
int intr_enable;
if (!root->dev.power.power_state)
return 0;
......@@ -101,17 +100,16 @@ static int ehci_hub_resume (struct usb_hcd *hcd)
/* re-init operational registers in case we lost power */
if (readl (&ehci->regs->intr_enable) == 0) {
/* at least some APM implementations will try to deliver
* IRQs right away, so delay them until we're ready.
*/
intr_enable = 1;
temp = 1;
writel (INTR_MASK, &ehci->regs->intr_enable);
writel (0, &ehci->regs->segment);
writel (ehci->periodic_dma, &ehci->regs->frame_list);
writel ((u32)ehci->async->qh_dma, &ehci->regs->async_next);
/* FIXME will this work even if (pci) vAUX was lost? */
} else
intr_enable = 0;
temp = 0;
ehci_dbg(ehci, "resume root hub%s\n",
intr_enable ? " after power loss" : "");
temp ? " after power loss" : "");
/* restore CMD_RUN, framelist size, and irq threshold */
writel (ehci->command, &ehci->regs->command);
......@@ -153,11 +151,6 @@ static int ehci_hub_resume (struct usb_hcd *hcd)
root->dev.power.power_state = 0;
ehci->next_statechange = jiffies + msecs_to_jiffies(5);
ehci->hcd.state = USB_STATE_RUNNING;
/* Now we can safely re-enable irqs */
if (intr_enable)
writel (INTR_MASK, &ehci->regs->intr_enable);
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment