diff options
author | Daniel Mack <zonque@gmail.com> | 2013-04-10 23:55:42 +0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-05-28 20:22:21 +0400 |
commit | 0b3eba442d4810df4bdd46d6c3e189c9e7760137 (patch) | |
tree | 07f0cee14d64a391d5b02129ddbb93fa90b938dd /drivers/usb/musb/musb_host.c | |
parent | c2a2759d33787e49b751a446d63dd6af3abe3aeb (diff) | |
download | linux-0b3eba442d4810df4bdd46d6c3e189c9e7760137.tar.xz |
usb: musb: factor some host-specific functions
In particular, this introduces musb_host_resume_root_hub()and
musb_host_poke_root_hub() which will be stubbed out later.
Signed-off-by: Daniel Mack <zonque@gmail.com>
Acked-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/musb/musb_host.c')
-rw-r--r-- | drivers/usb/musb/musb_host.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c index 8914dec49f01..8b977d23ddfb 100644 --- a/drivers/usb/musb/musb_host.c +++ b/drivers/usb/musb/musb_host.c @@ -46,7 +46,6 @@ #include "musb_core.h" #include "musb_host.h" - /* MUSB HOST status 22-mar-2006 * * - There's still lots of partial code duplication for fault paths, so @@ -2608,3 +2607,17 @@ const struct hc_driver musb_hc_driver = { /* .start_port_reset = NULL, */ /* .hub_irq_enable = NULL, */ }; + +void musb_host_resume_root_hub(struct musb *musb) +{ + usb_hcd_resume_root_hub(musb_to_hcd(musb)); +} + +void musb_host_poke_root_hub(struct musb *musb) +{ + MUSB_HST_MODE(musb); + if (musb_to_hcd(musb)->status_urb) + usb_hcd_poll_rh_status(musb_to_hcd(musb)); + else + usb_hcd_resume_root_hub(musb_to_hcd(musb)); +} |