mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 04:12:04 -04:00
Merge "usb: dwc3: Set FORCE_MEM_CORE_ON bit of GCC_USB30_MASTER_CLK"
This commit is contained in:
commit
99e8c41675
1 changed files with 3 additions and 0 deletions
|
|
@ -15,6 +15,7 @@
|
|||
#include <linux/iommu.h>
|
||||
#include <linux/ioport.h>
|
||||
#include <linux/clk.h>
|
||||
#include <linux/clk/qcom.h>
|
||||
#include <linux/io.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/types.h>
|
||||
|
|
@ -2187,6 +2188,7 @@ static int dwc3_msm_config_gdsc(struct dwc3_msm *mdwc, int on)
|
|||
return ret;
|
||||
}
|
||||
|
||||
qcom_clk_set_flags(mdwc->core_clk, CLKFLAG_RETAIN_MEM);
|
||||
ret = clk_prepare_enable(mdwc->core_csr_clk);
|
||||
if (ret) {
|
||||
regulator_disable(mdwc->dwc3_gdsc);
|
||||
|
|
@ -2194,6 +2196,7 @@ static int dwc3_msm_config_gdsc(struct dwc3_msm *mdwc, int on)
|
|||
return ret;
|
||||
}
|
||||
} else {
|
||||
qcom_clk_set_flags(mdwc->core_clk, CLKFLAG_NORETAIN_MEM);
|
||||
clk_disable_unprepare(mdwc->core_csr_clk);
|
||||
ret = regulator_disable(mdwc->dwc3_gdsc);
|
||||
if (ret) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue