From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Gross Subject: [PATCH] clk: qcom: msm8916: Fix crypto clock flags Date: Tue, 3 May 2016 15:24:11 -0500 Message-ID: <1462307051-19256-1-git-send-email-andy.gross@linaro.org> Return-path: Received: from mail-ob0-f173.google.com ([209.85.214.173]:35872 "EHLO mail-ob0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756342AbcECUYV (ORCPT ); Tue, 3 May 2016 16:24:21 -0400 Received: by mail-ob0-f173.google.com with SMTP id aq1so5298910obc.3 for ; Tue, 03 May 2016 13:24:21 -0700 (PDT) Sender: linux-arm-msm-owner@vger.kernel.org List-Id: linux-arm-msm@vger.kernel.org To: linux-clk@vger.kernel.org Cc: Stephen Boyd , Michael Turquette , linux-arm-msm@vger.kernel.org, Andy Gross This patch adds the CLK_SET_RATE_PARENT flag for the crypto core and ahb blocks. Without this flag, clk_set_rate can fail for certain frequency requests. Signed-off-by: Andy Gross --- drivers/clk/qcom/gcc-msm8916.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/qcom/gcc-msm8916.c b/drivers/clk/qcom/gcc-msm8916.c index 9c29080..5c4e193 100644 --- a/drivers/clk/qcom/gcc-msm8916.c +++ b/drivers/clk/qcom/gcc-msm8916.c @@ -2346,6 +2346,7 @@ static struct clk_branch gcc_crypto_ahb_clk = { "pcnoc_bfdcd_clk_src", }, .num_parents = 1, + .flags = CLK_SET_RATE_PARENT, .ops = &clk_branch2_ops, }, }, @@ -2381,6 +2382,7 @@ static struct clk_branch gcc_crypto_clk = { "crypto_clk_src", }, .num_parents = 1, + .flags = CLK_SET_RATE_PARENT, .ops = &clk_branch2_ops, }, }, -- 1.9.1