diff options
Diffstat (limited to 'drivers/pci/host/pcie-iproc-platform.c')
-rw-r--r-- | drivers/pci/host/pcie-iproc-platform.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/drivers/pci/host/pcie-iproc-platform.c b/drivers/pci/host/pcie-iproc-platform.c index a5073a921a04..e764a2a2693c 100644 --- a/drivers/pci/host/pcie-iproc-platform.c +++ b/drivers/pci/host/pcie-iproc-platform.c | |||
@@ -1,14 +1,6 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | /* | 2 | /* |
2 | * Copyright (C) 2015 Broadcom Corporation | 3 | * Copyright (C) 2015 Broadcom Corporation |
3 | * | ||
4 | * This program is free software; you can redistribute it and/or | ||
5 | * modify it under the terms of the GNU General Public License as | ||
6 | * published by the Free Software Foundation version 2. | ||
7 | * | ||
8 | * This program is distributed "as is" WITHOUT ANY WARRANTY of any | ||
9 | * kind, whether express or implied; without even the implied warranty | ||
10 | * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | */ | 4 | */ |
13 | 5 | ||
14 | #include <linux/kernel.h> | 6 | #include <linux/kernel.h> |
@@ -92,6 +84,13 @@ static int iproc_pcie_pltfm_probe(struct platform_device *pdev) | |||
92 | pcie->need_ob_cfg = true; | 84 | pcie->need_ob_cfg = true; |
93 | } | 85 | } |
94 | 86 | ||
87 | /* | ||
88 | * DT nodes are not used by all platforms that use the iProc PCIe | ||
89 | * core driver. For platforms that require explict inbound mapping | ||
90 | * configuration, "dma-ranges" would have been present in DT | ||
91 | */ | ||
92 | pcie->need_ib_cfg = of_property_read_bool(np, "dma-ranges"); | ||
93 | |||
95 | /* PHY use is optional */ | 94 | /* PHY use is optional */ |
96 | pcie->phy = devm_phy_get(dev, "pcie-phy"); | 95 | pcie->phy = devm_phy_get(dev, "pcie-phy"); |
97 | if (IS_ERR(pcie->phy)) { | 96 | if (IS_ERR(pcie->phy)) { |