From: John Crispin <john@phrozen.org>
To: "linux-mips@linux-mips.org" <linux-mips@linux-mips.org>
Subject: pci and pcie coexistence
Date: Fri, 04 May 2012 15:37:39 +0200 [thread overview]
Message-ID: <4FA3DBA3.5030903@phrozen.org> (raw)
Hi,
I have some boards, where pcie and pci need to coexist.
This implies, that both drivers share the same pcibios_plat_dev_init and
pcibios_map_irq.
I am trying to figure out, how to best differentiate between the 2
drivers. Would the following be sane ?
if (pci_find_capability(pdev, PCI_CAP_ID_EXP))
do_pcie_stuf();
else
do_pci_stuff();
Thanks,
John
reply other threads:[~2012-05-04 13:39 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=4FA3DBA3.5030903@phrozen.org \
--to=john@phrozen.org \
--cc=linux-mips@linux-mips.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.