From: Scott Wood <scottwood@freescale.com>
To: Li Yang-R58472 <r58472@freescale.com>
Cc: Wood Scott-B07421 <B07421@freescale.com>,
Bradley Hughes <bhughes@silicontkx.com>,
"linuxppc-dev@lists.ozlabs.org" <linuxppc-dev@lists.ozlabs.org>,
Jia Hongtao-B38951 <B38951@freescale.com>
Subject: Re: [PATCH V8] powerpc/fsl-pci: Unify pci/pcie initialization code
Date: Tue, 21 Aug 2012 13:24:30 -0500 [thread overview]
Message-ID: <5033D25E.5000703@freescale.com> (raw)
In-Reply-To: <C22578AD-1B40-4F3A-AB3B-4ECABE218815@freescale.com>
On 08/21/2012 01:09 PM, Li Yang-R58472 wrote:
>
>
> On Aug 22, 2012, at 1:16, "Wood Scott-B07421" <B07421@freescale.com> wrote:
>
>> On 08/21/2012 01:49 AM, Li Yang-R58472 wrote:
>>> If there is i8259 node in the device tree, it should be suggesting
>>> that there is a PCI to ISA bridge but not explicitly described in the
>>> device tree. Then we need to fix the device tree to add the ISA
>>> nodes.
>>
>> No, we need to work with existing device trees. Just because they're
>> hosted in the kernel tree doesn't mean they can be treated as an
>> internal kernel implementation detail. They are stable API with
>> external entities such as bootloaders and hypervisors, get forked for
>> custom boards, etc.
>
> You are right that device tree binding is a stable API but not a poorly written dts instance.
>
> We are not changing any binding definition. It is just adding the
> somehow missed node that should be there in some poorly written dts
> in the first place according to current binding. Is it making any
> sense to have ISA devices directly under pci bus?
I agree in general, but in this case it's easy enough to work with
existing trees, and the workaround is localized to platform code for the
boards with the problem. Adding this workaround doesn't prevent adding
an isa node to the device tree.
>> Boards with this problem should set fsl_pci_primary in platform code
>> based on whatever criteria is relevant.
>
> I don't know how legitimate it is to use a new kernel but not the
> device tree from that source.
It's legitimate, if a bit risky because we have a history of not getting
device trees right the first time (but it should still be a goal).
Conisder that significant parts of the device tree often come from
firmware rather than the .dts. As I've said a few times in the past, I
think the device trees should be kept in the U-Boot tree rather than
Linux (only those that are meant to be used with U-Boot, of course).
It's a U-Boot internal implementation issue what comes from the .dts and
what gets fixed up or generated at runtime.
-Scott
next prev parent reply other threads:[~2012-08-21 18:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-20 10:06 [PATCH V8] powerpc/fsl-pci: Unify pci/pcie initialization code Jia Hongtao
2012-08-20 22:04 ` Scott Wood
2012-08-21 0:56 ` Scott Wood
2012-08-21 3:27 ` Jia Hongtao-B38951
2012-08-21 3:26 ` Jia Hongtao-B38951
2012-08-21 6:49 ` Li Yang-R58472
2012-08-21 17:16 ` Scott Wood
2012-08-21 18:09 ` Li Yang-R58472
2012-08-21 18:24 ` Scott Wood [this message]
2012-08-21 18:33 ` Scott Wood
2012-08-22 7:41 ` Jia Hongtao-B38951
-- strict thread matches above, loose matches on Subject: below --
2012-08-20 9:55 Jia Hongtao
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=5033D25E.5000703@freescale.com \
--to=scottwood@freescale.com \
--cc=B07421@freescale.com \
--cc=B38951@freescale.com \
--cc=bhughes@silicontkx.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=r58472@freescale.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;
as well as URLs for NNTP newsgroup(s).