summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2016-10-06 18:30:56 (GMT)
committerBjorn Helgaas <bhelgaas@google.com>2016-10-12 01:49:23 (GMT)
commitacaa88e4e21f737c270892c31b4846a5d11b3b49 (patch)
treef592ff1b0c34ebe3f50a4a2293a7da3b42d6af0c
parent0d93f8d17e33e8956c69e01e6b3fe465f38fd5f9 (diff)
downloadlinux-acaa88e4e21f737c270892c31b4846a5d11b3b49.tar.xz
PCI: artpec6: Remove unnecessary artpec6_pcie_link_up()
Remove artpec6_pcie_link_up(); the generic dw_pcie_link_up() does the same thing, so we don't need a device-specific version. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Jesper Nilsson <jesper.nilsson@axis.com>
-rw-r--r--drivers/pci/host/pcie-artpec6.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/pci/host/pcie-artpec6.c b/drivers/pci/host/pcie-artpec6.c
index b3829d0..d3e7a40 100644
--- a/drivers/pci/host/pcie-artpec6.c
+++ b/drivers/pci/host/pcie-artpec6.c
@@ -177,23 +177,7 @@ static void artpec6_pcie_host_init(struct pcie_port *pp)
artpec6_pcie_enable_interrupts(pp);
}
-static int artpec6_pcie_link_up(struct pcie_port *pp)
-{
- u32 rc;
-
- /*
- * Get status from Synopsys IP
- * link is debug bit 36, debug register 1 starts at bit 32
- */
- rc = readl(pp->dbi_base + PCIE_PHY_DEBUG_R1) & (0x1 << (36 - 32));
- if (rc)
- return 1;
-
- return 0;
-}
-
static struct pcie_host_ops artpec6_pcie_host_ops = {
- .link_up = artpec6_pcie_link_up,
.host_init = artpec6_pcie_host_init,
};