Thread (34 messages) 34 messages, 3 authors, 2015-07-30

[PATCH v6 07/13] clk: qcom: gdsc: Add support for ON only state

From: Stephen Boyd <hidden>
Date: 2015-07-23 01:11:50
Also in: linux-arm-msm, linux-pm

On 07/22/2015 12:11 AM, Rajendra Nayak wrote:
quoted hunk ↗ jump to hunk
@@ -200,6 +224,12 @@ static int gdsc_init(struct gdsc *sc)
  	if (ret)
  		return ret;
  
+	/* Force gdsc ON if only ON state is supported */
+	if (sc->pwrsts == PWRSTS_ON)
+		ret = gdsc_toggle_logic(sc, true);
+		if (ret)
+			return ret;
This is missing braces. Please test :)
quoted hunk ↗ jump to hunk
+
  	on = gdsc_is_enabled(sc);
  	if (on < 0)
  		return on;
diff --git a/drivers/clk/qcom/gdsc.h b/drivers/clk/qcom/gdsc.h
index 87c4ace..0d1c4fb 100644
--- a/drivers/clk/qcom/gdsc.h
+++ b/drivers/clk/qcom/gdsc.h
@@ -17,6 +17,7 @@
  #include <linux/clk.h>
  #include <linux/pm_domain.h>
  #include <linux/regmap.h>
+#include <linux/reset-controller.h>
Do we need this include either? Just forward declare stuff. Same comment 
goes for the clk include.


-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help