Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp679947iog; Fri, 24 Jun 2022 11:34:57 -0700 (PDT) X-Google-Smtp-Source: AGRyM1smCwKqrh37lih/z47DxxIuXCEjvwciHRf0Rj4xoLvzEt2vvRHAuBHdWKYpaikNFIaZ1pmh X-Received: by 2002:a17:907:7da2:b0:711:f36e:b855 with SMTP id oz34-20020a1709077da200b00711f36eb855mr383010ejc.308.1656095697342; Fri, 24 Jun 2022 11:34:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656095697; cv=none; d=google.com; s=arc-20160816; b=njL9wm4RUO5SVgqyLShZrFr/EGuwAxUKlKHNRZcsZ4gWPOJnWZJYnRo2S7yWvdct2S ROIJW6Mpl1Zd8uE6OwdWlFsIfSub31I0SHof8YveH5puIG/abgyaty8rc+mWzS7QZaie nVkI2AnlFdAu+A1VTIoi4vn+VTNrTFaXXfpQ59KbFBP7VPlcncDBkYFN8u3isK5Zvi/T J+D+ZOJKBytEmE8CI0PT62npIadvvQJPZ7xfbAKVeZfYmx6lccu0Q9koqK21eG/7Vh/+ 7joxD+wnxZPD+eTxXy4hM/bEAY5pMUwvH4gtvlLw2+cPOD3zs6qYkM9wMxBJisBTpIS+ lySQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=7UZMPMhDZHwhruUP/gy07hdb/n6RU3gIUBFH2x6pR/E=; b=0Dy1QVToQT1N8uAvzdhYDToFLFx3fJcPtoRlknxesfJGBgb/mSRVZe5wF5HcOJy6nF IM7d2zDAdVnT/zBFpklfeJP4wiLgwcwpP7pJIyW1df/soMNxxnZyvXV3+aDaHKizwTrH NRdyWIA2pv3ECTJ8dkHv1NzMsOgDUV6agFdxrMAf/7abLS/pasKw3jl/6wkZzTHQsPqx HE9N45IVtZFhTO3ooMZPTeDkDTH2BydGwtKI00JtMH2SHVkjTtFcj7PYsuEr00C3CWz2 O0+1IdZ8JlBxs1B7AVcoCwc6O5CYksUe5uoY7TRpvSw9tlMwdie/XkCptTdYnYWxfHij V49w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=OzJxyJkg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e3-20020a17090658c300b00711d06c0e97si3453988ejs.521.2022.06.24.11.34.31; Fri, 24 Jun 2022 11:34:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=OzJxyJkg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229936AbiFXSbk (ORCPT + 99 others); Fri, 24 Jun 2022 14:31:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230308AbiFXSbg (ORCPT ); Fri, 24 Jun 2022 14:31:36 -0400 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 624057E013 for ; Fri, 24 Jun 2022 11:31:33 -0700 (PDT) Received: by mail-pl1-x62d.google.com with SMTP id d5so2772261plo.12 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=ykK7YIjcVr+Cn3dBtdL/pj33zula1Hfx8LwuXhH53SH4mP0UKQ5BBqaC4c24YyhaCF e3pqBMSQp2VbKFaxhWXLoIerR9Ica//6g+t+l6TcCW4Bqb+m9HhkZTzLnd2Wb6ZUCXLY AhNttN6vAwlXQsI3Ynvbco7GlA4opYx4FgqNHRaVfsmIdsBaN2obeHB9BLHVfSo+YM7c Dc+bbsOMNYK5a5HrJ21GODJppTIgq3984I1Rwzt2ABEcska4pOguoU7ZDfKoQJ3MqrOu gdQ1X42HOJN6m6BOPkxn7xs95b6Uut/0WN4t6ggKEpGTCeq8GcMNMeMHmLFC8ThD6hjb KB6w== X-Gm-Message-State: AJIora8zV26wr1/C1oPYfbyMnTgNPYQ3OH1GOtcWKo/oKm1M332EUNxq PFKYOkMbkv9UbreaoTa/Xv8ZiA== 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> X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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.