From patchwork Thu Dec 7 10:59:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 10098445 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0FCEB60329 for ; Thu, 7 Dec 2017 11:02:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EE7862913A for ; Thu, 7 Dec 2017 11:02:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E20732992F; Thu, 7 Dec 2017 11:02:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5FF33204FF for ; Thu, 7 Dec 2017 11:02:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753026AbdLGLCK (ORCPT ); Thu, 7 Dec 2017 06:02:10 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:42294 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752823AbdLGLCJ (ORCPT ); Thu, 7 Dec 2017 06:02:09 -0500 Received: by mail-wm0-f65.google.com with SMTP id l141so12295673wmg.1 for ; Thu, 07 Dec 2017 03:02:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=hUgsiEZ3uiZA5KQEa4igxWqCa/4uM9EoKeFj7MhT6Nk=; b=f6b1kAN8QzOi3Uz24pjMuMO6wws+rdspy7mcOOTrsBYReFP7QmJxx/mDKOBrC65hGc F1z4J+41g7sff3vCUc5EjTm07bs45IoVS3X2ktUmsI+/b6w17665W/dsNgOrxxeS/DdO SWVnQYKtFGvFEwHtZlfdVx1D58W6St6IxUO6I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=hUgsiEZ3uiZA5KQEa4igxWqCa/4uM9EoKeFj7MhT6Nk=; b=mSKdw5QtuKHHdYpBEeP5RY/w+F3lCUuuCKzaM1eqGc9a2EbwfaSxMAJrnx9ktTwL5B ylmIi3EEp0PVvcQPdo+X3L7hMc84V/JXMonsckucN0G0EwOhrfQNz1AHLrI9A5nsZn5c 66C4VH7wnoWvBpwvwtq1oGyIWaCWoDsW+aCWiG+u48RYFUq+8Ovg+RHlsq3P7XHbPo/j 6LxU2Cj4onoIehZ2w2SjAMEaVeLDA6TVSYq+ShWL7nZA24OHi9C8j8eLUZvJL/6rAlQx h60vYe18pUiuAgXYLAfdYkVYC09C2aC9N7vFiOpZ3UbObMPSSmhZJFNrcMqEyqPOrIYr AR2g== X-Gm-Message-State: AKGB3mIoLfI5/oGIUxXtZHTQxStgEum7+xBPE+2kWwRLMYWJoh/AC6PL YrRtAxis7oRcJKtkyNo6w+8Hzg== X-Google-Smtp-Source: AGs4zMZWn3P/ClxUC328bad5Y1ZGr2xQaPbPTO917iMRrTloCYMn+KAKutjZz5JKTued/9WXvyWk7g== X-Received: by 10.28.213.2 with SMTP id m2mr716598wmg.141.1512644527863; Thu, 07 Dec 2017 03:02:07 -0800 (PST) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id x142sm5472727wme.34.2017.12.07.03.02.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Dec 2017 03:02:07 -0800 (PST) From: srinivas.kandagatla@linaro.org To: sboyd@codeaurora.org, linux-clk@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH] clk: qcom: gcc-msm8996: Mark aggre0 noc clks as critical Date: Thu, 7 Dec 2017 10:59:22 +0000 Message-Id: <20171207105922.31986-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.15.0 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Srinivas Kandagatla aggre0 bus clks are not associated with any of the drivers, so its important that these clks are always on to get peripherals on this bus working. So mark them as critical. Eventually when we have a proper bus driver these clks can be marked appropriately. Without this patch pcie on db820c is not functional. Signed-off-by: Srinivas Kandagatla --- drivers/clk/qcom/gcc-msm8996.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/clk/qcom/gcc-msm8996.c b/drivers/clk/qcom/gcc-msm8996.c index 7ddec886fcd3..0146d8853488 100644 --- a/drivers/clk/qcom/gcc-msm8996.c +++ b/drivers/clk/qcom/gcc-msm8996.c @@ -2891,7 +2891,7 @@ static struct clk_branch gcc_aggre0_snoc_axi_clk = { .name = "gcc_aggre0_snoc_axi_clk", .parent_names = (const char *[]){ "system_noc_clk_src" }, .num_parents = 1, - .flags = CLK_SET_RATE_PARENT, + .flags = CLK_SET_RATE_PARENT | CLK_IS_CRITICAL, .ops = &clk_branch2_ops, }, }, @@ -2906,7 +2906,7 @@ static struct clk_branch gcc_aggre0_cnoc_ahb_clk = { .name = "gcc_aggre0_cnoc_ahb_clk", .parent_names = (const char *[]){ "config_noc_clk_src" }, .num_parents = 1, - .flags = CLK_SET_RATE_PARENT, + .flags = CLK_SET_RATE_PARENT | CLK_IS_CRITICAL, .ops = &clk_branch2_ops, }, }, @@ -2921,7 +2921,7 @@ static struct clk_branch gcc_smmu_aggre0_axi_clk = { .name = "gcc_smmu_aggre0_axi_clk", .parent_names = (const char *[]){ "system_noc_clk_src" }, .num_parents = 1, - .flags = CLK_SET_RATE_PARENT, + .flags = CLK_SET_RATE_PARENT | CLK_IS_CRITICAL, .ops = &clk_branch2_ops, }, }, @@ -2936,7 +2936,7 @@ static struct clk_branch gcc_smmu_aggre0_ahb_clk = { .name = "gcc_smmu_aggre0_ahb_clk", .parent_names = (const char *[]){ "config_noc_clk_src" }, .num_parents = 1, - .flags = CLK_SET_RATE_PARENT, + .flags = CLK_SET_RATE_PARENT | CLK_IS_CRITICAL, .ops = &clk_branch2_ops, }, },