PCI: dwc: Drop support for config space in 'ranges'
authorRob Herring <robh@kernel.org>
Tue, 15 Dec 2020 19:41:49 +0000 (13:41 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 24 Feb 2021 17:09:50 +0000 (11:09 -0600)
commit2f5ab5afe018a8c208bcefe37fbd26ff1afc25a2
tree3ee76d7799121b763e2042cb0a0cc9821fc028ea
parent6104033bd25ef48d2013220f66632d8b0fc8cddb
PCI: dwc: Drop support for config space in 'ranges'

Since commit a0fd361db8e5 ("PCI: dwc: Move "dbi", "dbi2", and
"addr_space" resource setup into common code"), the code
setting dbi_base when the config space is defined in 'ranges' property
instead of 'reg' is dead code as dbi_base is never NULL.

Rather than fix this, let's just drop the code. Using ranges has been
deprecated since 2014. The only platforms using this were exynos5440,
i.MX6 and Spear13xx. Exynos5440 is dead and has been removed. i.MX6 and
Spear13xx had PCIe support added just before this was deprecated and
were fixed within a kernel release or 2.

Link: https://lore.kernel.org/r/20201215194149.86831-1-robh@kernel.org
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/controller/dwc/pcie-designware-host.c