clk: qcom: gdsc: Add support to poll for higher timeout value
authorAmit Nischal <anischal@codeaurora.org>
Mon, 9 Apr 2018 08:41:45 +0000 (14:11 +0530)
committerStephen Boyd <sboyd@kernel.org>
Tue, 17 Apr 2018 04:12:13 +0000 (21:12 -0700)
For some gdscs, it might take longer time up to 500us for updating their
status. Update the timeout value for all GDSC polling status.

Signed-off-by: Amit Nischal <anischal@codeaurora.org>
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/qcom/gdsc.c

index 266fefa3a94ad36f539b7f2036795efda988832b..cb61c1590e9c5c9add2d52a033ebd8f431239679 100644 (file)
@@ -41,7 +41,7 @@
 #define RETAIN_MEM             BIT(14)
 #define RETAIN_PERIPH          BIT(13)
 
-#define TIMEOUT_US             100
+#define TIMEOUT_US             500
 
 #define domain_to_gdsc(domain) container_of(domain, struct gdsc, pd)