OSDN Git Service

clk: qcom: gcc-msm8998: Disable halt check of UFS clocks
authorBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 3 Dec 2018 18:33:29 +0000 (10:33 -0800)
committerStephen Boyd <sboyd@kernel.org>
Wed, 5 Dec 2018 23:57:48 +0000 (15:57 -0800)
Drop the halt check of the UFS symbol clocks, in accordance with other
platforms. This makes clk_disable_unused() happy and makes it possible
to turn the clocks on again without an error.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/qcom/gcc-msm8998.c

index 664bdaf..c1819ef 100644 (file)
@@ -2386,7 +2386,7 @@ static struct clk_branch gcc_ufs_phy_aux_clk = {
 
 static struct clk_branch gcc_ufs_rx_symbol_0_clk = {
        .halt_reg = 0x75014,
-       .halt_check = BRANCH_HALT,
+       .halt_check = BRANCH_HALT_SKIP,
        .clkr = {
                .enable_reg = 0x75014,
                .enable_mask = BIT(0),
@@ -2399,7 +2399,7 @@ static struct clk_branch gcc_ufs_rx_symbol_0_clk = {
 
 static struct clk_branch gcc_ufs_rx_symbol_1_clk = {
        .halt_reg = 0x7605c,
-       .halt_check = BRANCH_HALT,
+       .halt_check = BRANCH_HALT_SKIP,
        .clkr = {
                .enable_reg = 0x7605c,
                .enable_mask = BIT(0),
@@ -2412,7 +2412,7 @@ static struct clk_branch gcc_ufs_rx_symbol_1_clk = {
 
 static struct clk_branch gcc_ufs_tx_symbol_0_clk = {
        .halt_reg = 0x75010,
-       .halt_check = BRANCH_HALT,
+       .halt_check = BRANCH_HALT_SKIP,
        .clkr = {
                .enable_reg = 0x75010,
                .enable_mask = BIT(0),