From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 41047C43334 for ; Fri, 24 Jun 2022 18:31:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230520AbiFXSbi (ORCPT ); Fri, 24 Jun 2022 14:31:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230082AbiFXSbg (ORCPT ); Fri, 24 Jun 2022 14:31:36 -0400 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D8FF7E007 for ; Fri, 24 Jun 2022 11:31:33 -0700 (PDT) Received: by mail-pj1-x1032.google.com with SMTP id l2so2364397pjf.1 for ; Fri, 24 Jun 2022 11:31:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=7UZMPMhDZHwhruUP/gy07hdb/n6RU3gIUBFH2x6pR/E=; b=OzJxyJkgM0vPngbknpX9j+vS0DyzJx/Y7jlWmi4L4mtZaouBN8j5a82S7tkUPOViXk Sj/2UTqLMdbbwxsMDcmiY6BrW3Ta01AdBZzSb7cMNKaWBxQZCxu6R9IuCquOQnQUhpPA 0BHrTGS57awX289R4o9EwS6PC7nTF2GJewB9A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=7UZMPMhDZHwhruUP/gy07hdb/n6RU3gIUBFH2x6pR/E=; b=gxw01zIu5f8sqeH0BzevExpWtz3U/0prfWPfyuHH8a44DRvZ0Lc5cDYWrAVIEGWAZB rYPoTkislUThXimKZaOlrdU7WXIvDs9OGBZTczwDIkRv+vN9D+Q75Q7oux2932yZycF4 TK2XaHNN5vBSX4b9ZpaqzHlo464pWJyhYfgsxWHXXeT4nMBrzSk+a+s9EUxsB/gFVexk 08b6Im+yNm7EPF2taHQSJLZz9NmSiNMClktpHC8xInn2pKbCOy6SZ2xWErQ+2NUONSf3 rqbs7UOnSdzUVryvuk0VygDs714lSAHCXFYCy/XI2clExtu00xBkoRYn3qYJmBcVm08F 1vbg== X-Gm-Message-State: AJIora8J7KAHM7BkC/2Vcxurc3s+kdHOJlqrtJGIAlRMFJ7/YV7mIFwv 3KS3FJNL4wtwGweBScY39XS58Q== X-Google-Smtp-Source: AGRyM1uMM2ZoIYSFehnqHolpsYBxnGcZUaFDORWDi05jODl4um7df6RKhhwxrb8uxB0JMS5Xs2o3vg== X-Received: by 2002:a17:903:2494:b0:168:fee7:6daa with SMTP id p20-20020a170903249400b00168fee76daamr476085plw.39.1656095492888; Fri, 24 Jun 2022 11:31:32 -0700 (PDT) Received: from localhost ([2620:15c:11a:202:2d5:7aa9:cf0a:7d28]) by smtp.gmail.com with UTF8SMTPSA id c10-20020a17090a020a00b001cd4989febcsm4389374pjc.8.2022.06.24.11.31.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 24 Jun 2022 11:31:32 -0700 (PDT) Date: Fri, 24 Jun 2022 11:31:30 -0700 From: Matthias Kaehlcke To: Krishna chaitanya chundru Cc: helgaas@kernel.org, linux-pci@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, quic_vbadigan@quicinc.com, quic_hemantk@quicinc.com, quic_nitegupt@quicinc.com, quic_skananth@quicinc.com, quic_ramkri@quicinc.com, manivannan.sadhasivam@linaro.org, swboyd@chromium.org, Andy Gross , Bjorn Andersson , Stanimir Varbanov , Lorenzo Pieralisi , Rob Herring , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Bjorn Helgaas Subject: Re: [PATCH v1 1/2] PCI: qcom: Add system PM support Message-ID: References: <1656055682-18817-1-git-send-email-quic_krichai@quicinc.com> <1656055682-18817-2-git-send-email-quic_krichai@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1656055682-18817-2-git-send-email-quic_krichai@quicinc.com> Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On Fri, Jun 24, 2022 at 12:58:01PM +0530, Krishna chaitanya chundru wrote: > Add suspend and resume pm callbacks. > > When system suspends, and if the link is in L1ss, disable the clocks > so that system enters into low power state to save the maximum power. > And when the system resumes, enable the clocks back if they are > disabled in the suspend path. > > Signed-off-by: Krishna chaitanya chundru On which tree is this series based on? With v5.19-rc3 I get: CC drivers/pci/controller/dwc/pcie-qcom.o /mnt/host/source/src/third_party/kernel/v5.15/drivers/pci/controller/dwc/pcie-qcom.c:1658:26: error: cannot assign to non-static data member 'cfg' with const-qualified type 'const struct qcom_pcie_cfg *' pcie->cfg->is_suspended = false; ~~~~~~~~~~~~~~~~~~~~~~~ ^ /mnt/host/source/src/third_party/kernel/v5.15/drivers/pci/controller/dwc/pcie-qcom.c:218:30: note: non-static data member 'cfg' declared const here const struct qcom_pcie_cfg *cfg; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ /mnt/host/source/src/third_party/kernel/v5.15/drivers/pci/controller/dwc/pcie-qcom.c:1721:2: error: use of undeclared identifier 'val' val = readl(pcie->parf + PCIE20_PARF_PM_STTS); ^ /mnt/host/source/src/third_party/kernel/v5.15/drivers/pci/controller/dwc/pcie-qcom.c:1722:8: error: use of undeclared identifier 'val' if (!(val & PCIE20_PARF_PM_STTS_LINKST_IN_L1SUB)) { ^ /mnt/host/source/src/third_party/kernel/v5.15/drivers/pci/controller/dwc/pcie-qcom.c:1733:26: error: cannot assign to non-static data member 'cfg' with const-qualified type 'const struct qcom_pcie_cfg *' pcie->cfg->is_suspended = true; ~~~~~~~~~~~~~~~~~~~~~~~ ^ /mnt/host/source/src/third_party/kernel/v5.15/drivers/pci/controller/dwc/pcie-qcom.c:218:30: note: non-static data member 'cfg' declared const here const struct qcom_pcie_cfg *cfg; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ /mnt/host/source/src/third_party/kernel/v5.15/drivers/pci/controller/dwc/pcie-qcom.c:1749:9: error: no member named 'ops' in 'struct qcom_pcie' pcie->ops->enable_clks(pcie); ~~~~ ^ /mnt/host/source/src/third_party/kernel/v5.15/drivers/pci/controller/dwc/pcie-qcom.c:1752:9: error: no member named 'ops' in 'struct qcom_pcie' pcie->ops->post_init(pcie); ~~~~ ^ /mnt/host/source/src/third_party/kernel/v5.15/drivers/pci/controller/dwc/pcie-qcom.c:1754:26: error: cannot assign to non-static data member 'cfg' with const-qualified type 'const struct qcom_pcie_cfg *' pcie->cfg->is_suspended = false; ~~~~~~~~~~~~~~~~~~~~~~~ ^ /mnt/host/source/src/third_party/kernel/v5.15/drivers/pci/controller/dwc/pcie-qcom.c:218:30: note: non-static data member 'cfg' declared const here const struct qcom_pcie_cfg *cfg; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ 7 errors generated.