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: 67098 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp790226qge; Tue, 3 May 2016 13:24:23 -0700 (PDT) X-Received: by 10.98.100.71 with SMTP id y68mr6457777pfb.84.1462307063589; Tue, 03 May 2016 13:24:23 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ag3si200270pad.44.2016.05.03.13.24.23; Tue, 03 May 2016 13:24:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756454AbcECUYW (ORCPT + 8 others); Tue, 3 May 2016 16:24:22 -0400 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) 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=m8+Zy9ZkfkeqREvb0FUdz+U9nSBNB6XftIrE2pXVl969i0H5LaQo9bFLPhKAns2tIH Mx0pdV7jGnWhQQf3JuSc1AS7sKXFAPB++xNbTZc75Nfva6UDdkoksGfIGbyPXi+9+ddZ feoMwBPTbK7qdPl4iOK5Q+fYU3/upQj76+jUg7N1z7ptx5Rj9EHto47O4w9GBSISrCxV hraRUL4CxG+/pfBzj/INaecw2raQbFbH2jVjDSj2ZoNpTUa4wiJNUAcdlp0uNvUZ3waY ljUj07LUVeuV8qA3lEdAbzbhMtk55spUJBIBUpNlVcMfd0eEhAtu5bMQ5oQfcb4TpRmO pkTw== X-Gm-Message-State: AOPr4FXAcctiFYMEWt7yWT8Ynmb8Ul5EOCyTq1KWoaWKrRrKQEiOo6v4M7/UcHEc86r6QuuC 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-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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(+) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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, }, },