From 59caa1227949c9478d556594a7c327951bd2a83e Mon Sep 17 00:00:00 2001 From: Hemant Kumar Date: Thu, 27 Oct 2016 11:58:37 -0700 Subject: usb: dwc3: Turn on memory core and periphery upon resume Memory core and memory peripheral blocks should remain on upon host bus suspend otherwise XHCI controller fails to respond to XHCI commands upon host bus resume. These memory blocks will be turned off only upon stopping host mode or vbus off in device mode. Change-Id: I1f53c9536b6896111707b77954d2b6cf4d227db8 Signed-off-by: Hemant Kumar --- drivers/usb/dwc3/dwc3-msm.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'drivers') diff --git a/drivers/usb/dwc3/dwc3-msm.c b/drivers/usb/dwc3/dwc3-msm.c index 08006d84fb38..8474d7ce8337 100644 --- a/drivers/usb/dwc3/dwc3-msm.c +++ b/drivers/usb/dwc3/dwc3-msm.c @@ -2072,6 +2072,11 @@ static int dwc3_msm_resume(struct dwc3_msm *mdwc) clk_prepare_enable(mdwc->iface_clk); clk_set_rate(mdwc->core_clk, mdwc->core_clk_rate); clk_prepare_enable(mdwc->core_clk); + + /* set Memory core: ON, Memory periphery: ON */ + clk_set_flags(mdwc->core_clk, CLKFLAG_RETAIN_MEM); + clk_set_flags(mdwc->core_clk, CLKFLAG_RETAIN_PERIPH); + clk_prepare_enable(mdwc->utmi_clk); if (mdwc->bus_aggr_clk) clk_prepare_enable(mdwc->bus_aggr_clk); -- cgit v1.2.3