aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb/musb_virthub.c
diff options
context:
space:
mode:
authorDaniel Mack <zonque@gmail.com>2013-11-26 13:31:14 +0100
committerFelipe Balbi <balbi@ti.com>2013-11-26 10:58:16 -0600
commit869c597829817af4b9f85c5e4181c622918dc781 (patch)
tree412253db26f14c15ec9f41a8302cf6e422e1a609 /drivers/usb/musb/musb_virthub.c
parentusb: musb: dsps: add {tx,rx}_mode to wrapper (diff)
downloadlinux-dev-869c597829817af4b9f85c5e4181c622918dc781.tar.xz
linux-dev-869c597829817af4b9f85c5e4181c622918dc781.zip
usb: musb: dsps: add support for suspend and resume
The dsps platform needs to save save some registers at suspend time and restore them after resume. This patch adds a struct for these registers, and also lets the musb core know that the core registers need to be saved as well. We also have to explicitly de-assert the port reset upon resume on this platform, but musb_port_reset() should not be called from glue layers. Hence, introduce a flag in struct musb_hdrc_config for this. Signed-off-by: Daniel Mack <zonque@gmail.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/musb/musb_virthub.c')
-rw-r--r--drivers/usb/musb/musb_virthub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/musb/musb_virthub.c b/drivers/usb/musb/musb_virthub.c
index e977441401ed..24e46c0c84b5 100644
--- a/drivers/usb/musb/musb_virthub.c
+++ b/drivers/usb/musb/musb_virthub.c
@@ -109,7 +109,7 @@ void musb_port_suspend(struct musb *musb, bool do_suspend)
}
}
-static void musb_port_reset(struct musb *musb, bool do_reset)
+void musb_port_reset(struct musb *musb, bool do_reset)
{
u8 power;
void __iomem *mbase = musb->mregs;