From: Hans Zhang <18255117159@163.com>
To: Siddharth Vadapalli <s-vadapalli@ti.com>
Cc: lpieralisi@kernel.org, kw@linux.com,
manivannan.sadhasivam@linaro.org, robh@kernel.org,
bhelgaas@google.com, bwawrzyn@cisco.com,
thomas.richard@bootlin.com,
wojciech.jasko-EXT@continental-corporation.com,
linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [RESEND] PCI: cadence: Add configuration space capability search API
Date: Thu, 23 Jan 2025 16:15:12 +0800 [thread overview]
Message-ID: <fcfd4827-4d9e-4bcd-b1d0-8f9e349a6be7@163.com> (raw)
In-Reply-To: <vj5skjgz4li2vit3xpr3ysldrcvzoglfycemki3yrzg4ocrrkc@isk7ytysgih7>
On 2025/1/23 15:40, Siddharth Vadapalli wrote:
> On Thu, Jan 23, 2025 at 03:09:35PM +0800, Hans Zhang wrote:
>> Add configuration space capability search API using struct cdns_pcie*
>> pointer.
>>
>> Similar patches below have been merged.
>> commit 5b0841fa653f ("PCI: dwc: Add extended configuration space capability
>> search API")
>> commit 7a6854f6874f ("PCI: dwc: Move config space capability search API")
>
> Similar patches being merged doesn't sound like a proper reason for
> having a feature. Please provide details regarding why this is required.
> Assuming that the intent for introducing this feature is to use it
> later, it will be a good idea to post the patch for that as well in the
> same series.
>
Hi Siddharth,
For our SOC platform, the offset of some capability needs to be found
during the initialization process, which I think should be put into the
cadence public code
eg:
For API: cdns_pcie_find_capability
Need to find PCI Express, then set link speed, retrain link, MaxPayload,
MaxReadReq, Enable Relaxed Ordering.
For API: cdns_pcie_find_ext_capability
Need to find the Secondary PCIe Capability and set the GEN3 preset
value. Find the Physical Layer 16.0 GT/s and set the GEN4 preset value.
Development board based on our SOC, Radxa Orinon O6.
https://radxa.com/products/orion/o6/
Our controller driver currently has no plans for upstream and needs to
wait for notification from the boss.
Best regards
Hans
next prev parent reply other threads:[~2025-01-23 8:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-23 7:09 [RESEND] PCI: cadence: Add configuration space capability search API Hans Zhang
2025-01-23 7:40 ` Siddharth Vadapalli
2025-01-23 8:15 ` Hans Zhang [this message]
2025-01-23 17:08 ` Bjorn Helgaas
2025-01-24 13:00 ` Hans Zhang
-- strict thread matches above, loose matches on Subject: below --
2025-01-23 2:54 Hans Zhang
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=fcfd4827-4d9e-4bcd-b1d0-8f9e349a6be7@163.com \
--to=18255117159@163.com \
--cc=bhelgaas@google.com \
--cc=bwawrzyn@cisco.com \
--cc=kw@linux.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=lpieralisi@kernel.org \
--cc=manivannan.sadhasivam@linaro.org \
--cc=robh@kernel.org \
--cc=s-vadapalli@ti.com \
--cc=thomas.richard@bootlin.com \
--cc=wojciech.jasko-EXT@continental-corporation.com \
/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