Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 254163
b: refs/heads/master
c: c27d536
h: refs/heads/master
i:
  254161: fc3ba45
  254159: 4444fdb
v: v3
  • Loading branch information
Gabor Juhos authored and Greg Kroah-Hartman committed Jun 27, 2011
1 parent 4e3b5a6 commit 3ea7026
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 309427b6351b763917caac3e4b2ab5651df99823
refs/heads/master: c27d5368ef1f7ea40bcd1fb2626f4c99d77e0080
10 changes: 6 additions & 4 deletions trunk/drivers/usb/host/ehci-ath79.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ static int ehci_ath79_init(struct usb_hcd *hcd)
struct ehci_hcd *ehci = hcd_to_ehci(hcd);
struct platform_device *pdev = to_platform_device(hcd->self.controller);
const struct platform_device_id *id;
int hclength;
int ret;

id = platform_get_device_id(pdev);
Expand All @@ -53,20 +52,23 @@ static int ehci_ath79_init(struct usb_hcd *hcd)
return -EINVAL;
}

hclength = HC_LENGTH(ehci, ehci_readl(ehci, &ehci->caps->hc_capbase));
switch (id->driver_data) {
case EHCI_ATH79_IP_V1:
ehci->has_synopsys_hc_bug = 1;

ehci->caps = hcd->regs;
ehci->regs = hcd->regs + hclength;
ehci->regs = hcd->regs +
HC_LENGTH(ehci,
ehci_readl(ehci, &ehci->caps->hc_capbase));
break;

case EHCI_ATH79_IP_V2:
hcd->has_tt = 1;

ehci->caps = hcd->regs + 0x100;
ehci->regs = hcd->regs + 0x100 + hclength;
ehci->regs = hcd->regs + 0x100 +
HC_LENGTH(ehci,
ehci_readl(ehci, &ehci->caps->hc_capbase));
break;

default:
Expand Down

0 comments on commit 3ea7026

Please sign in to comment.