From: Bjorn Helgaas <helgaas@kernel.org>
To: Krishna chaitanya chundru <quic_krichai@quicinc.com>
Cc: andersson@kernel.org, "Bjorn Helgaas" <bhelgaas@google.com>,
"Lorenzo Pieralisi" <lpieralisi@kernel.org>,
"Krzysztof Wilczyński" <kw@linux.com>,
"Manivannan Sadhasivam" <manivannan.sadhasivam@linaro.org>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Konrad Dybcio" <konradybcio@kernel.org>,
cros-qcom-dts-watchers@chromium.org,
"Jingoo Han" <jingoohan1@gmail.com>,
"Bartosz Golaszewski" <brgl@bgdev.pl>,
quic_vbadigan@quicinc.com, linux-arm-msm@vger.kernel.org,
linux-pci@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 4/6] PCI: dwc: Add support for new pci function op
Date: Tue, 12 Nov 2024 17:32:02 -0600 [thread overview]
Message-ID: <20241112233202.GA1868078@bhelgaas> (raw)
In-Reply-To: <20241112-qps615_pwr-v3-4-29a1e98aa2b0@quicinc.com>
On Tue, Nov 12, 2024 at 08:31:36PM +0530, Krishna chaitanya chundru wrote:
> Add the support for stop_link() and start_link() function op.
When you update the series for the build issue, also update the
subject line here so it's more useful by itself, e.g.,
PCI: dwc: Implement .start_link(), .stop_link() hooks
Seems like the .host_start_link() bits might be a separate patch?
They're not mentioned in this commit log and don't look directly
related.
> Signed-off-by: Krishna chaitanya chundru <quic_krichai@quicinc.com>
> ---
> drivers/pci/controller/dwc/pcie-designware-host.c | 18 ++++++++++++++++++
> drivers/pci/controller/dwc/pcie-designware.h | 16 ++++++++++++++++
> 2 files changed, 34 insertions(+)
>
> diff --git a/drivers/pci/controller/dwc/pcie-designware-host.c b/drivers/pci/controller/dwc/pcie-designware-host.c
> index 3e41865c7290..d7e7f782390a 100644
> --- a/drivers/pci/controller/dwc/pcie-designware-host.c
> +++ b/drivers/pci/controller/dwc/pcie-designware-host.c
> @@ -691,10 +691,28 @@ void __iomem *dw_pcie_own_conf_map_bus(struct pci_bus *bus, unsigned int devfn,
> }
> EXPORT_SYMBOL_GPL(dw_pcie_own_conf_map_bus);
>
> +static int dw_pcie_op_start_link(struct pci_bus *bus)
> +{
> + struct dw_pcie_rp *pp = bus->sysdata;
> + struct dw_pcie *pci = to_dw_pcie_from_pp(pp);
> +
> + return dw_pcie_host_start_link(pci);
> +}
> +
> +static void dw_pcie_op_stop_link(struct pci_bus *bus)
> +{
> + struct dw_pcie_rp *pp = bus->sysdata;
> + struct dw_pcie *pci = to_dw_pcie_from_pp(pp);
> +
> + dw_pcie_host_stop_link(pci);
> +}
> +
> static struct pci_ops dw_pcie_ops = {
> .map_bus = dw_pcie_own_conf_map_bus,
> .read = pci_generic_config_read,
> .write = pci_generic_config_write,
> + .start_link = dw_pcie_op_start_link,
> + .stop_link = dw_pcie_op_stop_link,
> };
>
> static int dw_pcie_iatu_setup(struct dw_pcie_rp *pp)
> diff --git a/drivers/pci/controller/dwc/pcie-designware.h b/drivers/pci/controller/dwc/pcie-designware.h
> index 347ab74ac35a..b88b4edafcc3 100644
> --- a/drivers/pci/controller/dwc/pcie-designware.h
> +++ b/drivers/pci/controller/dwc/pcie-designware.h
> @@ -433,6 +433,8 @@ struct dw_pcie_ops {
> enum dw_pcie_ltssm (*get_ltssm)(struct dw_pcie *pcie);
> int (*start_link)(struct dw_pcie *pcie);
> void (*stop_link)(struct dw_pcie *pcie);
> + int (*host_start_link)(struct dw_pcie *pcie);
> + void (*host_stop_link)(struct dw_pcie *pcie);
> };
>
> struct dw_pcie {
> @@ -665,6 +667,20 @@ static inline void dw_pcie_stop_link(struct dw_pcie *pci)
> pci->ops->stop_link(pci);
> }
>
> +static inline int dw_pcie_host_start_link(struct dw_pcie *pci)
> +{
> + if (pci->ops && pci->ops->host_start_link)
> + return pci->ops->host_start_link(pci);
> +
> + return 0;
> +}
> +
> +static inline void dw_pcie_host_stop_link(struct dw_pcie *pci)
> +{
> + if (pci->ops && pci->ops->host_stop_link)
> + pci->ops->host_stop_link(pci);
> +}
> +
> static inline enum dw_pcie_ltssm dw_pcie_get_ltssm(struct dw_pcie *pci)
> {
> u32 val;
>
> --
> 2.34.1
>
next prev parent reply other threads:[~2024-11-12 23:32 UTC|newest]
Thread overview: 60+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-12 15:01 [PATCH v3 0/6] PCI: Enable Power and configure the QPS615 PCIe switch Krishna chaitanya chundru
2024-11-12 15:01 ` [PATCH v3 1/6] dt-bindings: PCI: Add binding for qps615 Krishna chaitanya chundru
2024-11-12 15:49 ` Bjorn Andersson
2024-11-15 16:18 ` Rob Herring
2024-11-24 1:32 ` Krishna Chaitanya Chundru
2024-12-04 8:49 ` Krishna Chaitanya Chundru
2024-12-23 16:45 ` Krishna Chaitanya Chundru
2025-02-10 7:51 ` Manivannan Sadhasivam
2025-02-10 9:37 ` Krishna Chaitanya Chundru
2024-12-23 18:57 ` Dmitry Baryshkov
2024-12-24 6:04 ` Krishna Chaitanya Chundru
2024-12-24 6:54 ` Dmitry Baryshkov
2024-12-24 9:09 ` Krishna Chaitanya Chundru
2024-12-24 9:47 ` Dmitry Baryshkov
2024-12-27 2:14 ` Krishna Chaitanya Chundru
2024-12-30 18:30 ` Dmitry Baryshkov
2024-12-30 18:22 ` Manivannan Sadhasivam
2025-01-07 14:28 ` Krishna Chaitanya Chundru
2025-02-10 7:58 ` Manivannan Sadhasivam
2025-02-10 10:13 ` Krishna Chaitanya Chundru
2024-11-20 8:04 ` Krzysztof Kozlowski
2024-11-24 1:41 ` Krishna Chaitanya Chundru
2024-11-25 7:40 ` Krzysztof Kozlowski
2024-11-26 6:50 ` Krishna Chaitanya Chundru
2024-11-26 6:58 ` Krzysztof Kozlowski
2024-11-28 13:24 ` Manivannan Sadhasivam
2024-11-28 14:08 ` Dmitry Baryshkov
2024-12-03 9:06 ` Krishna Chaitanya Chundru
2024-12-04 21:25 ` Bjorn Helgaas
2024-12-11 6:00 ` Manivannan Sadhasivam
2024-12-23 16:48 ` Krishna Chaitanya Chundru
2024-12-23 18:58 ` Dmitry Baryshkov
2024-12-24 9:11 ` Krishna Chaitanya Chundru
2024-12-24 9:49 ` Dmitry Baryshkov
2025-01-07 22:42 ` Bjorn Helgaas
2025-01-15 17:23 ` Manivannan Sadhasivam
2024-11-12 15:01 ` [PATCH v3 2/6] arm64: dts: qcom: qcs6490-rb3gen2: Add node " Krishna chaitanya chundru
2024-11-12 15:49 ` Bjorn Andersson
2024-11-15 11:45 ` Manivannan Sadhasivam
2024-11-20 8:06 ` Krzysztof Kozlowski
2024-11-20 11:03 ` Dmitry Baryshkov
2024-11-20 13:28 ` Krzysztof Kozlowski
2024-11-21 22:44 ` Dmitry Baryshkov
2024-11-12 15:01 ` [PATCH v3 3/6] PCI: Add new start_link() & stop_link function ops Krishna chaitanya chundru
2024-11-12 23:41 ` Bjorn Helgaas
2024-11-13 8:41 ` Krishna Chaitanya Chundru
2024-11-15 11:51 ` Manivannan Sadhasivam
2024-11-12 15:01 ` [PATCH v3 4/6] PCI: dwc: Add support for new pci function op Krishna chaitanya chundru
2024-11-12 23:32 ` Bjorn Helgaas [this message]
2024-11-12 15:01 ` [PATCH v3 5/6] PCI: qcom: Add support for host_stop_link() & host_start_link() Krishna chaitanya chundru
2024-11-12 23:36 ` Bjorn Helgaas
2024-11-15 11:57 ` Manivannan Sadhasivam
2024-11-24 1:44 ` Krishna Chaitanya Chundru
2024-11-12 15:01 ` [PATCH v3 6/6] PCI: pwrctl: Add power control driver for qps615 Krishna chaitanya chundru
2024-11-12 15:51 ` Bjorn Andersson
2024-11-12 23:21 ` Bjorn Andersson
2024-11-13 13:38 ` Bartosz Golaszewski
2024-11-15 12:25 ` Manivannan Sadhasivam
2024-11-20 14:59 ` Uwe Kleine-König
2024-12-04 21:19 ` Bjorn Helgaas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241112233202.GA1868078@bhelgaas \
--to=helgaas@kernel.org \
--cc=andersson@kernel.org \
--cc=bhelgaas@google.com \
--cc=brgl@bgdev.pl \
--cc=conor+dt@kernel.org \
--cc=cros-qcom-dts-watchers@chromium.org \
--cc=devicetree@vger.kernel.org \
--cc=jingoohan1@gmail.com \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=kw@linux.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=lpieralisi@kernel.org \
--cc=manivannan.sadhasivam@linaro.org \
--cc=quic_krichai@quicinc.com \
--cc=quic_vbadigan@quicinc.com \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.