Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4398156ybc; Tue, 26 Nov 2019 08:20:08 -0800 (PST) X-Google-Smtp-Source: APXvYqzaRM7RSpA/cHM6zV3MHQ9PgvmmVV9ZEMYN9vKtX2R/tgbqBZMpmWEgyIOSBWqJcQ7MOxOd X-Received: by 2002:a17:906:a457:: with SMTP id cb23mr43791382ejb.191.1574785208325; Tue, 26 Nov 2019 08:20:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574785208; cv=none; d=google.com; s=arc-20160816; b=W/Ybh7VrbMMvzXmHx3ra9Coh321iTP6AK9e5MCL3IptCgsr8W0A/EnW9+37mARA4Dg ZJzRIlfhV1URqSjrgeHV4dz+J4rLUP8GFLTIvvEJePkzU7MkCE+q8W2Bzen0ffPSoYfS eFYCX1rfBQDV/7d8lgXD3q5xmoxSpZMxP4ww+6cUCo9tgS8Q8VEJ+qemE1ThWJaqD4Dc K0I9uyLKFPhsSrHOFd/klWb7P0vNwbctefm8VCIf5vktE2Yvic01bLnRCqmRO7mvKJa1 7KY0tuvqGpm+IWUvDpf6GfM36p1+C2tgN1UxSbWCBLqRdX1hDRLZcOd4YFvwycjHuLq0 S64Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=XHpKE1+pRggjDZg3Vcgn+vzDPH0txuMe168rRQcCK68=; b=rVDE4AdGs/ubU8N/iaOiDwhPMoQNsTnXnpQZWmWWWHNefEDooAC9sn7Esow9D/rIwv 61OtYOPNTpKkSrII5moQmmtgLjA5GttWpAoDFGDNaLEob/h+k5iBdxwTrJhNvLuf0Yib xquVMRMJ+ADk4pDIR+Js6y5j1mAHbm0yIqnuOxk0KmyC/Zjslvo2pl2GNeigzj9f+Fmt A8R+XFJ+xXFuafX4XKDJ0j4mdrtWivtB2IQs0lA7ydXsMOHGFYyDOrVg2GxDLB5nm/V3 C1ni2Jslr1ulZBatEUV1a+ND928Buuwb4PvqKla22U8hLgRQc6JsDePBlCBM2DJvo0Mm ff/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=w864Jom6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k24si7390452ejk.280.2019.11.26.08.19.43; Tue, 26 Nov 2019 08:20:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=w864Jom6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728538AbfKZPem (ORCPT + 99 others); Tue, 26 Nov 2019 10:34:42 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:38047 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727028AbfKZPel (ORCPT ); Tue, 26 Nov 2019 10:34:41 -0500 Received: by mail-wm1-f66.google.com with SMTP id z19so3840692wmk.3 for ; Tue, 26 Nov 2019 07:34:39 -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:mime-version :content-transfer-encoding; bh=XHpKE1+pRggjDZg3Vcgn+vzDPH0txuMe168rRQcCK68=; b=w864Jom6wGOmf6sK60smmKGgc+SuwnyTekrouut8YkgOdmKIfioXo3WWtSDucAjPNR WYKH+7MhO2oaQ9OqDIvgWkjg0gy/lDu2VqmCi1+47V3irPn/aerma/cNc+OgLkYbpTyH CK7aZ5jQxixxxlW8zjdxfFjho+2+qTp5vmCBmWo0zLC5A1qdhl2zdj8AnrzS/LUQjeJn d+DDxvSktWFPp/y1YVj/1M1uMqwu9eGg16S8p9ywtgFt4VUup4/ERB5fMdSXrSn88XF5 uigHb9uV0hTG3cpI79vb1GnmTXZPwgXeyH3d0RvNJaMIS299a/Jqhh4kKigHioRL0uY5 U9Yg== 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:mime-version :content-transfer-encoding; bh=XHpKE1+pRggjDZg3Vcgn+vzDPH0txuMe168rRQcCK68=; b=RQeFGlxn0S+r+Lcl2z8pX48CKbrGxRtpCpZzAELNRmCYrppE8YpUDWfKrSxAs8zT3B Nju8MtPmwdHshzixsOC+woghtrvazOQw66VdcbYa7fDmYRhDMlFw6mJyByimPTPIUsoh kqBdGhd1BhAyxhBb96U8JbgNVxc4VwfI3cQ8zAdQZoBlawCxG0yjadOLWnupHgi5tfRT 0/0g5eXPcNH3PI/9FhXJPcDyjYhR9Jv+Bi1jNFndnKUxE1fntx9W0wEGtz/HWzWqgyWc OMCAzG8XZ+Uy7Ykl2AsLWPVVBWdJrm3vgMu9f0orIBwNvHUBLQ0Nelcx02KzRGE/e8hu Vf7w== X-Gm-Message-State: APjAAAVIh3bqS8fHSofISdUEN47zqggTar4t85Li98jZQuQCUrVmbqhc WvjlhtHNNRgAJMH9P5cS8SQjeg== X-Received: by 2002:a1c:6144:: with SMTP id v65mr5025056wmb.53.1574782479214; Tue, 26 Nov 2019 07:34:39 -0800 (PST) Received: from localhost.localdomain ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id j10sm15210748wrx.30.2019.11.26.07.34.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 26 Nov 2019 07:34:38 -0800 (PST) From: Georgi Djakov To: sboyd@kernel.org, bjorn.andersson@linaro.org, robdclark@gmail.com Cc: mturquette@baylibre.com, agross@kernel.org, tdas@codeaurora.org, anischal@codeaurora.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, georgi.djakov@linaro.org Subject: [PATCH] clk: qcom: gcc-sdm845: Add missing flag to votable GDSCs Date: Tue, 26 Nov 2019 17:34:37 +0200 Message-Id: <20191126153437.11808-1-georgi.djakov@linaro.org> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On sdm845 devices, during boot we see the following warnings (unless we have added 'pd_ignore_unused' to the kernel command line): hlos1_vote_mmnoc_mmu_tbu_sf_gdsc status stuck at 'on' hlos1_vote_mmnoc_mmu_tbu_hf1_gdsc status stuck at 'on' hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc status stuck at 'on' hlos1_vote_aggre_noc_mmu_tbu2_gdsc status stuck at 'on' hlos1_vote_aggre_noc_mmu_tbu1_gdsc status stuck at 'on' hlos1_vote_aggre_noc_mmu_pcie_tbu_gdsc status stuck at 'on' hlos1_vote_aggre_noc_mmu_audio_tbu_gdsc status stuck at 'on' As the name of these GDSCs suggests, they are "votable" and in downstream DT, they all have the property "qcom,no-status-check-on-disable", which means that we should not poll the status bit when we disable them. Luckily the VOTABLE flag already exists and it does exactly what we need, so let's make use of it to make the warnings disappear. Fixes: 06391eddb60a ("clk: qcom: Add Global Clock controller (GCC) driver for SDM845") Reported-by: Rob Clark Signed-off-by: Georgi Djakov --- drivers/clk/qcom/gcc-sdm845.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/clk/qcom/gcc-sdm845.c b/drivers/clk/qcom/gcc-sdm845.c index 95be125c3bdd..56d22dd225c9 100644 --- a/drivers/clk/qcom/gcc-sdm845.c +++ b/drivers/clk/qcom/gcc-sdm845.c @@ -3255,6 +3255,7 @@ static struct gdsc hlos1_vote_aggre_noc_mmu_audio_tbu_gdsc = { .name = "hlos1_vote_aggre_noc_mmu_audio_tbu_gdsc", }, .pwrsts = PWRSTS_OFF_ON, + .flags = VOTABLE, }; static struct gdsc hlos1_vote_aggre_noc_mmu_pcie_tbu_gdsc = { @@ -3263,6 +3264,7 @@ static struct gdsc hlos1_vote_aggre_noc_mmu_pcie_tbu_gdsc = { .name = "hlos1_vote_aggre_noc_mmu_pcie_tbu_gdsc", }, .pwrsts = PWRSTS_OFF_ON, + .flags = VOTABLE, }; static struct gdsc hlos1_vote_aggre_noc_mmu_tbu1_gdsc = { @@ -3271,6 +3273,7 @@ static struct gdsc hlos1_vote_aggre_noc_mmu_tbu1_gdsc = { .name = "hlos1_vote_aggre_noc_mmu_tbu1_gdsc", }, .pwrsts = PWRSTS_OFF_ON, + .flags = VOTABLE, }; static struct gdsc hlos1_vote_aggre_noc_mmu_tbu2_gdsc = { @@ -3279,6 +3282,7 @@ static struct gdsc hlos1_vote_aggre_noc_mmu_tbu2_gdsc = { .name = "hlos1_vote_aggre_noc_mmu_tbu2_gdsc", }, .pwrsts = PWRSTS_OFF_ON, + .flags = VOTABLE, }; static struct gdsc hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc = { @@ -3287,6 +3291,7 @@ static struct gdsc hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc = { .name = "hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc", }, .pwrsts = PWRSTS_OFF_ON, + .flags = VOTABLE, }; static struct gdsc hlos1_vote_mmnoc_mmu_tbu_hf1_gdsc = { @@ -3295,6 +3300,7 @@ static struct gdsc hlos1_vote_mmnoc_mmu_tbu_hf1_gdsc = { .name = "hlos1_vote_mmnoc_mmu_tbu_hf1_gdsc", }, .pwrsts = PWRSTS_OFF_ON, + .flags = VOTABLE, }; static struct gdsc hlos1_vote_mmnoc_mmu_tbu_sf_gdsc = { @@ -3303,6 +3309,7 @@ static struct gdsc hlos1_vote_mmnoc_mmu_tbu_sf_gdsc = { .name = "hlos1_vote_mmnoc_mmu_tbu_sf_gdsc", }, .pwrsts = PWRSTS_OFF_ON, + .flags = VOTABLE, }; static struct clk_regmap *gcc_sdm845_clocks[] = {