linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
To: linuxppc-dev@ozlabs.org
Subject: ppc4xx_pci: disable PCI (PnP) via fdt
Date: Sun, 24 Aug 2008 18:07:52 +0200	[thread overview]
Message-ID: <200808241807.52547.matthias.fuchs@esd-electronics.com> (raw)

Hi,

is it possible to disable PCI PnP via the device tree on a 4xx system?

I am working with a 440EPx board that can be system CPU (with PCI hostbridge)
or a PCI adapter board. In the latter setup I want to disable PCI PnP, 
preferred by manipulating the fdt by U-Boot. The PCI mode is 
detected by U-Boot through a GPIO signal. I do not want to remove the 
complete /plb/pci... path of the device tree for adapter mode , because I do 
not want the PCI bus to be totally invisible. lspci and friends should still 
show devices on the local PCI bus.

The 4xx PCIE fdt handling handles a 'status' and 'device_type' property.
These properties behave not the way I need and also they are only
available for PCIE. 

With arch/ppc kernels I did this by returning '1' from 
ppc_md.pci_exclude_device when PCI PnP should not be done.
Even though I could do it the same way with arch/powerpc, I hope
that there is a fdt-way.

Any ideas?

BTW, isn't it a good idea to handle the 'status' and 'device_type' property 
for PCI in the same way as for PCIE?

Matthias

                 reply	other threads:[~2008-08-24 16:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=200808241807.52547.matthias.fuchs@esd-electronics.com \
    --to=matthias.fuchs@esd-electronics.com \
    --cc=linuxppc-dev@ozlabs.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;
as well as URLs for NNTP newsgroup(s).