From patchwork Tue May 3 20:24:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Gross X-Patchwork-Id: 9008031 X-Patchwork-Delegate: sboyd@codeaurora.org Return-Path: X-Original-To: patchwork-linux-clk@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 32BB0BF440 for ; Tue, 3 May 2016 20:24:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 514A42035B for ; Tue, 3 May 2016 20:24:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C586A20380 for ; Tue, 3 May 2016 20:24:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756455AbcECUYW (ORCPT ); Tue, 3 May 2016 16:24:22 -0400 Received: from mail-ob0-f180.google.com ([209.85.214.180]:33388 "EHLO mail-ob0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756407AbcECUYV (ORCPT ); Tue, 3 May 2016 16:24:21 -0400 Received: by mail-ob0-f180.google.com with SMTP id x1so10856414obt.0 for ; Tue, 03 May 2016 13:24:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=wBqBNgANAKyaIGCvSmyvv0TPK5A15xyRlppM9xTZcoI=; b=AHgokoaMO1NEtvxI2DC7ENdcmNBVVF25ncj5HQUgM8trxfXUo7ceD/eGt0Mb2kq92b kHA8YAqLecaiYHONS09lHZy4P0i7ocfQOh9uefHTaLLKnMQJa1GvMBPyqpqXcsePKGId VNEAoh9JWKKI+OGChwWAhViAAgu7315l/Kzps= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=wBqBNgANAKyaIGCvSmyvv0TPK5A15xyRlppM9xTZcoI=; b=F9cmCUIB618PKgkbh8VnujOFfm6/VFGUfEplFzMM+apNF4POncVqOftCBwY53X1vx0 LWmX9h0a9HGryB/vWAVQK/snilumdr7DaBR5MC/9VtBTPgCEeNXTxxgKoJalM+mBm+sc xpRH1eJFvxU0cZ8Xg0Bhq0lhpuZCuTeoV1qTWKS4am58CnQrmMa4q9u6u/ObGBOflYYP bp7qEggeUU7jhlTY0jLsZttvdHYmVOOIkIV59RqRuTojT4HGE/VCJjY1INSxPYUeH3yj rhgXcOOypv31I8mnF3Cjq+66cc8kftNA8MNU8dO+Kg3fIW/p5muhlHvXqYXbitzkHByc jdWw== X-Gm-Message-State: AOPr4FVvzo6JVwXA1EHERBXWhnszcRh0OX4pPb0tL744882UQVW+iVV5NThml5TkLaP9skVL X-Received: by 10.60.85.3 with SMTP id d3mr436192oez.69.1462307060763; Tue, 03 May 2016 13:24:20 -0700 (PDT) Received: from localhost ([2602:306:c558:19b0:19c4:793f:1a5b:e926]) by smtp.gmail.com with ESMTPSA id cr3sm76744oeb.7.2016.05.03.13.24.20 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Tue, 03 May 2016 13:24:20 -0700 (PDT) From: Andy Gross To: linux-clk@vger.kernel.org Cc: Stephen Boyd , Michael Turquette , linux-arm-msm@vger.kernel.org, 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> X-Mailer: git-send-email 1.9.1 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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, }, },