| To: | "linux-mips@linux-mips.org" <linux-mips@linux-mips.org> |
|---|---|
| Subject: | pci and pcie coexistence |
| From: | John Crispin <john@phrozen.org> |
| Date: | Fri, 04 May 2012 15:37:39 +0200 |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111114 Icedove/3.1.16 |
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
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 11/14] watchdog: MIPS: lantiq: implement OF support and minor fixes, Wim Van Sebroeck |
|---|---|
| Next by Date: | [Bug-fix] Fix-the-backtrcae-problem-Ftrace is enable, Akhilesh Kumar |
| Previous by Thread: | [PATCH 01/14] MIPS: lantiq: drop mips_machine support, John Crispin |
| Next by Thread: | [Bug-fix] Fix-the-backtrcae-problem-Ftrace is enable, Akhilesh Kumar |
| Indexes: | [Date] [Thread] [Top] [All Lists] |