提交 b101a398 编写于 作者: K Kunihiko Hayashi 提交者: Lorenzo Pieralisi

PCI: keystone: Remove iATU register mapping

After applying "PCI: dwc: Add common iATU register support",
there is no need to set own iATU in the Keystone driver itself.
Suggested-by: NRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/1601444167-11316-5-git-send-email-hayashi.kunihiko@socionext.comSigned-off-by: NKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Signed-off-by: NLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: NRob Herring <robh@kernel.org>
Cc: Murali Karicheri <m-karicheri2@ti.com>
Cc: Jingoo Han <jingoohan1@gmail.com>
Cc: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
上级 13ab639e
...@@ -1154,7 +1154,6 @@ static int __init ks_pcie_probe(struct platform_device *pdev) ...@@ -1154,7 +1154,6 @@ static int __init ks_pcie_probe(struct platform_device *pdev)
struct keystone_pcie *ks_pcie; struct keystone_pcie *ks_pcie;
struct device_link **link; struct device_link **link;
struct gpio_desc *gpiod; struct gpio_desc *gpiod;
void __iomem *atu_base;
struct resource *res; struct resource *res;
unsigned int version; unsigned int version;
void __iomem *base; void __iomem *base;
...@@ -1275,23 +1274,12 @@ static int __init ks_pcie_probe(struct platform_device *pdev) ...@@ -1275,23 +1274,12 @@ static int __init ks_pcie_probe(struct platform_device *pdev)
goto err_get_sync; goto err_get_sync;
} }
if (pci->version >= 0x480A) { if (pci->version >= 0x480A)
atu_base = devm_platform_ioremap_resource_byname(pdev, "atu");
if (IS_ERR(atu_base)) {
ret = PTR_ERR(atu_base);
goto err_get_sync;
}
pci->atu_base = atu_base;
ret = ks_pcie_am654_set_mode(dev, mode); ret = ks_pcie_am654_set_mode(dev, mode);
if (ret < 0) else
goto err_get_sync;
} else {
ret = ks_pcie_set_mode(dev); ret = ks_pcie_set_mode(dev);
if (ret < 0) if (ret < 0)
goto err_get_sync; goto err_get_sync;
}
switch (mode) { switch (mode) {
case DW_PCIE_RC_TYPE: case DW_PCIE_RC_TYPE:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册