projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11ed312
)
pci: rmobile: Filter out device 1 and 2
author
Marek Vasut
<marek.vasut+renesas@gmail.com>
Fri, 24 Aug 2018 19:03:14 +0000
(21:03 +0200)
committer
Marek Vasut
<marex@denx.de>
Tue, 28 Aug 2018 09:01:52 +0000
(11:01 +0200)
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
patch
|
blob
|
history
diff --git
a/drivers/pci/pci-rcar-gen2.c
b/drivers/pci/pci-rcar-gen2.c
index
cbaba19
..
d913d53
100644
(file)
--- 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 */