diff options
author | Marek Vasut <marek.vasut+renesas@gmail.com> | 2018-08-24 21:03:14 +0200 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2018-08-28 11:01:52 +0200 |
commit | 313360b13fd3773eb46811e0f93928d4d58c6f32 (patch) | |
tree | 7e5fcaacf9e62447d3f16bae1f026f8213b2bc69 | |
parent | 11ed312896c5f5814064c5d45dcb2f53dc121437 (diff) |
pci: rmobile: Filter out device 1 and 2
Only PCI device 1 and 2 is populated on the R-Car Gen2 internal
PCIe controller. Ignore all other devices. This fix prevents a
duplication of OHCI controller response on slot 0 and 1.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
-rw-r--r-- | drivers/pci/pci-rcar-gen2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pci-rcar-gen2.c b/drivers/pci/pci-rcar-gen2.c index cbaba1986a..d913d53f3c 100644 --- a/drivers/pci/pci-rcar-gen2.c +++ b/drivers/pci/pci-rcar-gen2.c @@ -97,7 +97,7 @@ static int rcar_gen2_pci_addr_valid(pci_dev_t d, uint offset) /* Only one EHCI/OHCI device built-in */ slot = PCI_DEV(d); - if (slot > 2) + if (slot != 1 && slot != 2) return -EINVAL; /* bridge logic only has registers to 0x40 */ |