* [U-Boot] [PATCH] pci: rmobile: Filter out device 1 and 2
@ 2018-08-24 19:06 Marek Vasut
0 siblings, 0 replies; only message in thread
From: Marek Vasut @ 2018-08-24 19:06 UTC (permalink / raw)
To: u-boot
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>
---
drivers/pci/pci-rcar-gen2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 */
--
2.16.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-08-24 19:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-24 19:06 [U-Boot] [PATCH] pci: rmobile: Filter out device 1 and 2 Marek Vasut
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.