diff options
author | Daniel Mack <zonque@gmail.com> | 2013-11-25 22:26:41 +0100 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-11-26 10:35:15 -0600 |
commit | 94f72136a86141604bcab75a2548b6488e70128d (patch) | |
tree | 21b6eb82743325b9f381822a1e188367f08a5ed0 /drivers/usb/musb/musb_host.c | |
parent | c338412b5dedf405d3f8ba3af1a61fa623319e1d (diff) |
usb: musb: call musb_port_suspend from musb_bus_suspend
Make musb_port_suspend() externally available, and call it when to host
goes into suspend. This allows the core to go into suspend while a
device is connected.
Signed-off-by: Daniel Mack <zonque@gmail.com>
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 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c index 6582a20bec05..81caf9f4eb1a 100644 --- a/drivers/usb/musb/musb_host.c +++ b/drivers/usb/musb/musb_host.c @@ -2433,6 +2433,8 @@ static int musb_bus_suspend(struct usb_hcd *hcd) struct musb *musb = hcd_to_musb(hcd); u8 devctl; + musb_port_suspend(musb, true); + if (!is_host_active(musb)) return 0; |