From: Vidya Sagar <vidyas@nvidia.com>
To: Thierry Reding <treding@nvidia.com>,
"bhelgaas@google.com" <bhelgaas@google.com>,
"lorenzo.pieralisi@arm.com" <lorenzo.pieralisi@arm.com>
Cc: Gustavo Pimentel <Gustavo.Pimentel@synopsys.com>,
"robh+dt@kernel.org" <robh+dt@kernel.org>,
"amurray@thegoodpenguin.co.uk" <amurray@thegoodpenguin.co.uk>,
"jingoohan1@gmail.com" <jingoohan1@gmail.com>,
Joao Pinto <Joao.Pinto@synopsys.com>,
Jonathan Hunter <jonathanh@nvidia.com>,
Krishna Thota <kthota@nvidia.com>,
"linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: Query regarding the use of pcie-designware-plat.c file
Date: Tue, 15 Jun 2021 08:58:26 +0530 [thread overview]
Message-ID: <26a86c55-7c35-484a-2e6f-9d5c36b078f4@nvidia.com> (raw)
In-Reply-To: <YMCOoGzE2uGxabqF@orome.fritz.box>
Bjorn / Lorenzo,
Could you please comment on the options proposed by Thierry?
- Vidya Sagar
On 6/9/2021 3:19 PM, Thierry Reding wrote:
> On Wed, Jun 09, 2021 at 10:56:48AM +0530, Vidya Sagar wrote:
>>
>>
>> On 6/9/2021 2:47 AM, Gustavo Pimentel wrote:
>>> External email: Use caution opening links or attachments
>>>
>>>
>>> Hi Vidya,
>>>
>>> The pcie-designware-plat.c is the driver for the Synopsys PCIe RC IP
>>> prototype.
>> Thanks for the info Gustavo.
>> But, I don't see any DT file having only "snps,dw-pcie" compatibility
>> string. All the DT files that have "snps,dw-pci" compatibility string also
>> have their platform specific compatibility string and their respective host
>> controller drivers. Also, it is the platform specific compatibility string
>> that is used for binding purpose with their respective drivers and not the
>> "snps,dw-pcie". So, wondering when will pcie-designware-plat.c be used as
>> there is not DT file which has only "snps,dw-pcie" as the compatibility
>> string.
>
> Sounds to me like we have two options:
>
> 1. If there's indeed real hardware that's identified by the existing
> "snps,dw-pcie" compatible string, then it's wrong for other devices
> to list that in their compatible string because they are likely not
> compatible with that (i.e. they might be from a register point of
> view, but at least from an integration point of view they usually
> differ).
>
> 2. If "snps,dw-pcie" is meant to describe the fact that these are all
> based off the same IP but may be differently integrated, then there
> should be no driver matching on that compatible string.
>
> Option 2 is not very robust because somebody could easily add a matching
> driver at some point in the future. Also, if we don't match on a
> compatible string there's not a lot of use in listing it in DT in the
> first place.
>
> So I think option 1 would be preferred.
>
> Thierry
>
next prev parent reply other threads:[~2021-06-15 3:28 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-08 19:22 Vidya Sagar
2021-06-08 21:17 ` Gustavo Pimentel
2021-06-09 5:26 ` Vidya Sagar
2021-06-09 9:49 ` Thierry Reding
2021-06-15 3:28 ` Vidya Sagar [this message]
2021-06-09 16:30 ` Bjorn Helgaas
2021-06-09 16:54 ` Jon Hunter
2021-06-15 19:42 ` Bjorn Helgaas
2021-06-15 21:05 ` Rob Herring
2021-06-16 7:54 ` Jon Hunter
2021-06-20 13:35 ` Vidya Sagar
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=26a86c55-7c35-484a-2e6f-9d5c36b078f4@nvidia.com \
--to=vidyas@nvidia.com \
--cc=Gustavo.Pimentel@synopsys.com \
--cc=Joao.Pinto@synopsys.com \
--cc=amurray@thegoodpenguin.co.uk \
--cc=bhelgaas@google.com \
--cc=jingoohan1@gmail.com \
--cc=jonathanh@nvidia.com \
--cc=kthota@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=lorenzo.pieralisi@arm.com \
--cc=robh+dt@kernel.org \
--cc=treding@nvidia.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
all inboxes | Powered by JetHome®