diff options
author | Ido Shayevitz <idos@codeaurora.org> | 2012-04-24 07:18:39 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-04-24 08:37:04 -0400 |
commit | 51249dca627d9d0e6b41531e716cbc308554a62c (patch) | |
tree | 02338bf0474d5e03c366e180acc9c86b8d65c5cd /drivers/usb/dwc3/host.c | |
parent | ab5e59dbdb6d2e2d784381bd194e0229b8b990b5 (diff) |
usb: dwc3: core: split host address space
This fix prevents a problem with dwc3 and host mode where
we were requesting the entire memory region in dwc3/core.c,
thus preventing xhci-plat from ever ioremapping its own address space.
Signed-off-by: Ido Shayevitz <idos@codeaurora.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3/host.c')
-rw-r--r-- | drivers/usb/dwc3/host.c | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/drivers/usb/dwc3/host.c b/drivers/usb/dwc3/host.c index b108d18fd40d..56a62342884d 100644 --- a/drivers/usb/dwc3/host.c +++ b/drivers/usb/dwc3/host.c | |||
@@ -39,15 +39,6 @@ | |||
39 | 39 | ||
40 | #include "core.h" | 40 | #include "core.h" |
41 | 41 | ||
42 | static struct resource generic_resources[] = { | ||
43 | { | ||
44 | .flags = IORESOURCE_IRQ, | ||
45 | }, | ||
46 | { | ||
47 | .flags = IORESOURCE_MEM, | ||
48 | }, | ||
49 | }; | ||
50 | |||
51 | int dwc3_host_init(struct dwc3 *dwc) | 42 | int dwc3_host_init(struct dwc3 *dwc) |
52 | { | 43 | { |
53 | struct platform_device *xhci; | 44 | struct platform_device *xhci; |
@@ -68,14 +59,8 @@ int dwc3_host_init(struct dwc3 *dwc) | |||
68 | 59 | ||
69 | dwc->xhci = xhci; | 60 | dwc->xhci = xhci; |
70 | 61 | ||
71 | /* setup resources */ | 62 | ret = platform_device_add_resources(xhci, dwc->xhci_resources, |
72 | generic_resources[0].start = dwc->irq; | 63 | DWC3_XHCI_RESOURCES_NUM); |
73 | |||
74 | generic_resources[1].start = dwc->res->start; | ||
75 | generic_resources[1].end = dwc->res->start + 0x7fff; | ||
76 | |||
77 | ret = platform_device_add_resources(xhci, generic_resources, | ||
78 | ARRAY_SIZE(generic_resources)); | ||
79 | if (ret) { | 64 | if (ret) { |
80 | dev_err(dwc->dev, "couldn't add resources to xHCI device\n"); | 65 | dev_err(dwc->dev, "couldn't add resources to xHCI device\n"); |
81 | goto err1; | 66 | goto err1; |