aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ehci-hcd.c
diff options
context:
space:
mode:
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>2012-05-11 10:25:54 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-11 19:56:15 -0400
commiteb70e5ab8f95a81283623c03d2c99dfc59fcb319 (patch)
treefc20c9d10484171490cf6b69f7f5b6f934803366 /drivers/usb/host/ehci-hcd.c
parent758fc9860c19eceb56e5886a5225db623c521971 (diff)
usb: chipidea: add host role
This adds EHCI host support to the chipidea driver. We want it to be part of the hdrc driver and not a standalone (sub-)driver module, as the structure of ehci-hcd.c suggests, so for chipidea controller we hack it to not provide platform-related code, but only the ehci hcd. The ehci-platform driver won't work for us here too, because the controller uses the same registers for both device and host mode and also otg-related bits, so it's not really possible to put ehci registers into a separate resource. This is not a pretty solution, but the alternative is exporting symbols from the chipidea driver to a ehci-chipidea driver and doing all the module refcounting. Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/ehci-hcd.c')
-rw-r--r--drivers/usb/host/ehci-hcd.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
index de1e689d3df0..5cb775b1802d 100644
--- a/drivers/usb/host/ehci-hcd.c
+++ b/drivers/usb/host/ehci-hcd.c
@@ -1246,6 +1246,13 @@ static int ehci_get_frame (struct usb_hcd *hcd)
1246} 1246}
1247 1247
1248/*-------------------------------------------------------------------------*/ 1248/*-------------------------------------------------------------------------*/
1249/*
1250 * The EHCI in ChipIdea HDRC cannot be a separate module or device,
1251 * because its registers (and irq) are shared between host/gadget/otg
1252 * functions and in order to facilitate role switching we cannot
1253 * give the ehci driver exclusive access to those.
1254 */
1255#ifndef CHIPIDEA_EHCI
1249 1256
1250MODULE_DESCRIPTION(DRIVER_DESC); 1257MODULE_DESCRIPTION(DRIVER_DESC);
1251MODULE_AUTHOR (DRIVER_AUTHOR); 1258MODULE_AUTHOR (DRIVER_AUTHOR);
@@ -1504,3 +1511,4 @@ static void __exit ehci_hcd_cleanup(void)
1504} 1511}
1505module_exit(ehci_hcd_cleanup); 1512module_exit(ehci_hcd_cleanup);
1506 1513
1514#endif /* CHIPIDEA_EHCI */