diff options
Diffstat (limited to 'drivers/usb/host/ehci-tegra.c')
-rw-r--r-- | drivers/usb/host/ehci-tegra.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb/host/ehci-tegra.c index 477ecfa05154..f7f3ce3275b8 100644 --- a/drivers/usb/host/ehci-tegra.c +++ b/drivers/usb/host/ehci-tegra.c | |||
@@ -281,30 +281,14 @@ static int tegra_ehci_setup(struct usb_hcd *hcd) | |||
281 | 281 | ||
282 | /* EHCI registers start at offset 0x100 */ | 282 | /* EHCI registers start at offset 0x100 */ |
283 | ehci->caps = hcd->regs + 0x100; | 283 | ehci->caps = hcd->regs + 0x100; |
284 | ehci->regs = hcd->regs + 0x100 + | ||
285 | HC_LENGTH(ehci, readl(&ehci->caps->hc_capbase)); | ||
286 | |||
287 | dbg_hcs_params(ehci, "reset"); | ||
288 | dbg_hcc_params(ehci, "reset"); | ||
289 | |||
290 | /* cache this readonly data; minimize chip reads */ | ||
291 | ehci->hcs_params = readl(&ehci->caps->hcs_params); | ||
292 | 284 | ||
293 | /* switch to host mode */ | 285 | /* switch to host mode */ |
294 | hcd->has_tt = 1; | 286 | hcd->has_tt = 1; |
295 | ehci_reset(ehci); | ||
296 | 287 | ||
297 | retval = ehci_halt(ehci); | 288 | retval = ehci_setup(ehci); |
298 | if (retval) | 289 | if (retval) |
299 | return retval; | 290 | return retval; |
300 | 291 | ||
301 | /* data structure init */ | ||
302 | retval = ehci_init(hcd); | ||
303 | if (retval) | ||
304 | return retval; | ||
305 | |||
306 | ehci->sbrn = 0x20; | ||
307 | |||
308 | ehci_port_power(ehci, 1); | 292 | ehci_port_power(ehci, 1); |
309 | return retval; | 293 | return retval; |
310 | } | 294 | } |