Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 265016
b: refs/heads/master
c: 2093c6b
h: refs/heads/master
v: v3
  • Loading branch information
Matthieu CASTET authored and Greg Kroah-Hartman committed Sep 26, 2011
1 parent debbf58 commit 27ede03
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 236c448cb6e7f82096101e1ace4b77f8b38f82c8
refs/heads/master: 2093c6b49c8f1dc581d8953aca71297d4cace55e
29 changes: 29 additions & 0 deletions trunk/drivers/usb/host/ehci-hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,35 @@ static int ehci_run (struct usb_hcd *hcd)
return 0;
}

static int __maybe_unused ehci_setup (struct usb_hcd *hcd)
{
struct ehci_hcd *ehci = hcd_to_ehci(hcd);
int retval;

ehci->regs = (void __iomem *)ehci->caps +
HC_LENGTH(ehci, ehci_readl(ehci, &ehci->caps->hc_capbase));
dbg_hcs_params(ehci, "reset");
dbg_hcc_params(ehci, "reset");

/* cache this readonly data; minimize chip reads */
ehci->hcs_params = ehci_readl(ehci, &ehci->caps->hcs_params);

ehci->sbrn = HCD_USB2;

retval = ehci_halt(ehci);
if (retval)
return retval;

/* data structure init */
retval = ehci_init(hcd);
if (retval)
return retval;

ehci_reset(ehci);

return 0;
}

/*-------------------------------------------------------------------------*/

static irqreturn_t ehci_irq (struct usb_hcd *hcd)
Expand Down

0 comments on commit 27ede03

Please sign in to comment.