- /* stop schedules, then turn off HC and clean any completed work */
- if (hcd->state == USB_STATE_RUNNING)
- ehci_ready (ehci);
- ehci->command = readl (&ehci->regs->command);
- writel (ehci->command & ~CMD_RUN, &ehci->regs->command);
- if (ehci->reclaim)
- ehci->reclaim_ready = 1;
- ehci_work(ehci, NULL);
- (void) handshake (&ehci->regs->status, STS_HALT, STS_HALT, 2000);