From: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
To: Niklas Cassel <cassel@kernel.org>
Cc: "Jesper Nilsson" <jesper.nilsson@axis.com>,
"Lorenzo Pieralisi" <lpieralisi@kernel.org>,
"Krzysztof Wilczyński" <kw@linux.com>,
"Rob Herring" <robh@kernel.org>,
"Bjorn Helgaas" <bhelgaas@google.com>,
"Damien Le Moal" <dlemoal@kernel.org>,
"Frank Li" <Frank.Li@nxp.com>,
linux-arm-kernel@axis.com, linux-pci@vger.kernel.org
Subject: Re: [PATCH v4 3/5] PCI: artpec6: Implement dw_pcie_ep operation get_features
Date: Wed, 27 Nov 2024 12:42:12 +0530 [thread overview]
Message-ID: <20241127071212.7syxqqxeulof4iay@thinkpad> (raw)
In-Reply-To: <20241122115709.2949703-10-cassel@kernel.org>
On Fri, Nov 22, 2024 at 12:57:12PM +0100, Niklas Cassel wrote:
> All non-DWC EPC drivers implement (struct pci_epc *)->ops->get_features().
> All DWC EPC drivers implement (struct dw_pcie_ep *)->ops->get_features(),
> except for pcie-artpec6.c.
>
> epc_features has been required in pci-epf-test.c since commit 6613bc2301ba
> ("PCI: endpoint: Fix NULL pointer dereference for ->get_features()").
>
> A follow-up commit will make further use of epc_features in EPC core code.
>
> Implement epc_features in the only EPC driver where it is currently not
> implemented.
>
> Signed-off-by: Niklas Cassel <cassel@kernel.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
- Mani
> Reviewed-by: Frank Li <Frank.Li@nxp.com>
> Acked-by: Jesper Nilsson <jesper.nilsson@axis.com>
> ---
> drivers/pci/controller/dwc/pcie-artpec6.c | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
>
> diff --git a/drivers/pci/controller/dwc/pcie-artpec6.c b/drivers/pci/controller/dwc/pcie-artpec6.c
> index f8e7283dacd4..234c8cbcae3a 100644
> --- a/drivers/pci/controller/dwc/pcie-artpec6.c
> +++ b/drivers/pci/controller/dwc/pcie-artpec6.c
> @@ -369,9 +369,22 @@ static int artpec6_pcie_raise_irq(struct dw_pcie_ep *ep, u8 func_no,
> return 0;
> }
>
> +static const struct pci_epc_features artpec6_pcie_epc_features = {
> + .linkup_notifier = false,
> + .msi_capable = true,
> + .msix_capable = false,
> +};
> +
> +static const struct pci_epc_features *
> +artpec6_pcie_get_features(struct dw_pcie_ep *ep)
> +{
> + return &artpec6_pcie_epc_features;
> +}
> +
> static const struct dw_pcie_ep_ops pcie_ep_ops = {
> .init = artpec6_pcie_ep_init,
> .raise_irq = artpec6_pcie_raise_irq,
> + .get_features = artpec6_pcie_get_features,
> };
>
> static int artpec6_pcie_probe(struct platform_device *pdev)
> --
> 2.47.0
>
--
மணிவண்ணன் சதாசிவம்
next prev parent reply other threads:[~2024-11-27 7:12 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-22 11:57 [PATCH v4 0/5] PCI endpoint additional pci_epc_set_bar() checks Niklas Cassel
2024-11-22 11:57 ` [PATCH v4 1/5] PCI: dwc: ep: iATU registers must be written after the BAR_MASK Niklas Cassel
2024-11-27 7:04 ` Manivannan Sadhasivam
2024-11-22 11:57 ` [PATCH v4 2/5] PCI: dwc: ep: Add 'address' alignment to 'size' check in dw_pcie_prog_ep_inbound_atu() Niklas Cassel
2024-11-27 7:11 ` Manivannan Sadhasivam
2024-11-22 11:57 ` [PATCH v4 3/5] PCI: artpec6: Implement dw_pcie_ep operation get_features Niklas Cassel
2024-11-27 7:12 ` Manivannan Sadhasivam [this message]
2024-11-22 11:57 ` [PATCH v4 4/5] PCI: endpoint: Add size check for fixed size BARs in pci_epc_set_bar() Niklas Cassel
2024-11-27 7:13 ` Manivannan Sadhasivam
2024-11-22 11:57 ` [PATCH v4 5/5] PCI: endpoint: Verify that requested BAR size is a power of two Niklas Cassel
2024-11-27 7:14 ` Manivannan Sadhasivam
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=20241127071212.7syxqqxeulof4iay@thinkpad \
--to=manivannan.sadhasivam@linaro.org \
--cc=Frank.Li@nxp.com \
--cc=bhelgaas@google.com \
--cc=cassel@kernel.org \
--cc=dlemoal@kernel.org \
--cc=jesper.nilsson@axis.com \
--cc=kw@linux.com \
--cc=linux-arm-kernel@axis.com \
--cc=linux-pci@vger.kernel.org \
--cc=lpieralisi@kernel.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox