diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2016-12-12 12:25:10 -0500 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2016-12-12 12:25:10 -0500 |
commit | a1d9190d9682fd5cb8af811228f492b2ddd41366 (patch) | |
tree | 88d885b8447357d978af9c181f21aa8f6d86d801 | |
parent | aee10cd4c12aaa4d89d3355e669eb5025885094d (diff) | |
parent | 49da21108f773b50b01b9fd0b6ca97b91b6ff216 (diff) |
Merge branch 'pci/host-rcar' into next
* pci/host-rcar:
PCI: rcar: Add gen3 fallback compatibility string for pcie-rcar
PCI: rcar: Use gen2 fallback compatibility last
PCI: rcar-gen2: Use gen2 fallback compatibility last
-rw-r--r-- | Documentation/devicetree/bindings/pci/rcar-pci.txt | 1 | ||||
-rw-r--r-- | drivers/pci/host/pci-rcar-gen2.c | 2 | ||||
-rw-r--r-- | drivers/pci/host/pcie-rcar.c | 5 |
3 files changed, 5 insertions, 3 deletions
diff --git a/Documentation/devicetree/bindings/pci/rcar-pci.txt b/Documentation/devicetree/bindings/pci/rcar-pci.txt index 6cf99690eef9..eee518db90b9 100644 --- a/Documentation/devicetree/bindings/pci/rcar-pci.txt +++ b/Documentation/devicetree/bindings/pci/rcar-pci.txt | |||
@@ -7,6 +7,7 @@ compatible: "renesas,pcie-r8a7779" for the R8A7779 SoC; | |||
7 | "renesas,pcie-r8a7793" for the R8A7793 SoC; | 7 | "renesas,pcie-r8a7793" for the R8A7793 SoC; |
8 | "renesas,pcie-r8a7795" for the R8A7795 SoC; | 8 | "renesas,pcie-r8a7795" for the R8A7795 SoC; |
9 | "renesas,pcie-rcar-gen2" for a generic R-Car Gen2 compatible device. | 9 | "renesas,pcie-rcar-gen2" for a generic R-Car Gen2 compatible device. |
10 | "renesas,pcie-rcar-gen3" for a generic R-Car Gen3 compatible device. | ||
10 | 11 | ||
11 | When compatible with the generic version, nodes must list the | 12 | When compatible with the generic version, nodes must list the |
12 | SoC-specific version corresponding to the platform first | 13 | SoC-specific version corresponding to the platform first |
diff --git a/drivers/pci/host/pci-rcar-gen2.c b/drivers/pci/host/pci-rcar-gen2.c index 1eeefa4df64c..85348590848b 100644 --- a/drivers/pci/host/pci-rcar-gen2.c +++ b/drivers/pci/host/pci-rcar-gen2.c | |||
@@ -430,10 +430,10 @@ static int rcar_pci_probe(struct platform_device *pdev) | |||
430 | } | 430 | } |
431 | 431 | ||
432 | static struct of_device_id rcar_pci_of_match[] = { | 432 | static struct of_device_id rcar_pci_of_match[] = { |
433 | { .compatible = "renesas,pci-rcar-gen2", }, | ||
434 | { .compatible = "renesas,pci-r8a7790", }, | 433 | { .compatible = "renesas,pci-r8a7790", }, |
435 | { .compatible = "renesas,pci-r8a7791", }, | 434 | { .compatible = "renesas,pci-r8a7791", }, |
436 | { .compatible = "renesas,pci-r8a7794", }, | 435 | { .compatible = "renesas,pci-r8a7794", }, |
436 | { .compatible = "renesas,pci-rcar-gen2", }, | ||
437 | { }, | 437 | { }, |
438 | }; | 438 | }; |
439 | 439 | ||
diff --git a/drivers/pci/host/pcie-rcar.c b/drivers/pci/host/pcie-rcar.c index 62700d1896f4..aca85be101f8 100644 --- a/drivers/pci/host/pcie-rcar.c +++ b/drivers/pci/host/pcie-rcar.c | |||
@@ -1071,13 +1071,14 @@ static int rcar_pcie_parse_map_dma_ranges(struct rcar_pcie *pcie, | |||
1071 | 1071 | ||
1072 | static const struct of_device_id rcar_pcie_of_match[] = { | 1072 | static const struct of_device_id rcar_pcie_of_match[] = { |
1073 | { .compatible = "renesas,pcie-r8a7779", .data = rcar_pcie_hw_init_h1 }, | 1073 | { .compatible = "renesas,pcie-r8a7779", .data = rcar_pcie_hw_init_h1 }, |
1074 | { .compatible = "renesas,pcie-rcar-gen2", | ||
1075 | .data = rcar_pcie_hw_init_gen2 }, | ||
1076 | { .compatible = "renesas,pcie-r8a7790", | 1074 | { .compatible = "renesas,pcie-r8a7790", |
1077 | .data = rcar_pcie_hw_init_gen2 }, | 1075 | .data = rcar_pcie_hw_init_gen2 }, |
1078 | { .compatible = "renesas,pcie-r8a7791", | 1076 | { .compatible = "renesas,pcie-r8a7791", |
1079 | .data = rcar_pcie_hw_init_gen2 }, | 1077 | .data = rcar_pcie_hw_init_gen2 }, |
1078 | { .compatible = "renesas,pcie-rcar-gen2", | ||
1079 | .data = rcar_pcie_hw_init_gen2 }, | ||
1080 | { .compatible = "renesas,pcie-r8a7795", .data = rcar_pcie_hw_init }, | 1080 | { .compatible = "renesas,pcie-r8a7795", .data = rcar_pcie_hw_init }, |
1081 | { .compatible = "renesas,pcie-rcar-gen3", .data = rcar_pcie_hw_init }, | ||
1081 | {}, | 1082 | {}, |
1082 | }; | 1083 | }; |
1083 | 1084 | ||