aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2017-11-09 17:17:39 -0500
committerBjorn Helgaas <bhelgaas@google.com>2017-11-09 17:17:39 -0500
commit499c0106f59d1da447cb0d99fdb74db0de5d8c1d (patch)
treedb19f3b69d79118cf2f84a9b223a9bf83916d4d1
parent9e66317d3c92ddaab330c125dfe9d06eee268aff (diff)
PCI: altera: Rename altera_pcie_link_is_up() to altera_pcie_link_up()
Rename altera_pcie_link_is_up() to altera_pcie_link_up() to follow the convention of other drivers. No functional change intended. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Acked-by: Ley Foon Tan <ley.foon.tan@intel.com>
-rw-r--r--drivers/pci/host/pcie-altera.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/pci/host/pcie-altera.c b/drivers/pci/host/pcie-altera.c
index b468b8cccf8d..5cc4f594d79a 100644
--- a/drivers/pci/host/pcie-altera.c
+++ b/drivers/pci/host/pcie-altera.c
@@ -105,7 +105,7 @@ static inline u32 cra_readl(struct altera_pcie *pcie, const u32 reg)
105 return readl_relaxed(pcie->cra_base + reg); 105 return readl_relaxed(pcie->cra_base + reg);
106} 106}
107 107
108static bool altera_pcie_link_is_up(struct altera_pcie *pcie) 108static bool altera_pcie_link_up(struct altera_pcie *pcie)
109{ 109{
110 return !!((cra_readl(pcie, RP_LTSSM) & RP_LTSSM_MASK) == LTSSM_L0); 110 return !!((cra_readl(pcie, RP_LTSSM) & RP_LTSSM_MASK) == LTSSM_L0);
111} 111}
@@ -142,7 +142,7 @@ static bool altera_pcie_valid_device(struct altera_pcie *pcie,
142{ 142{
143 /* If there is no link, then there is no device */ 143 /* If there is no link, then there is no device */
144 if (bus->number != pcie->root_bus_nr) { 144 if (bus->number != pcie->root_bus_nr) {
145 if (!altera_pcie_link_is_up(pcie)) 145 if (!altera_pcie_link_up(pcie))
146 return false; 146 return false;
147 } 147 }
148 148
@@ -412,7 +412,7 @@ static void altera_wait_link_retrain(struct altera_pcie *pcie)
412 /* Wait for link is up */ 412 /* Wait for link is up */
413 start_jiffies = jiffies; 413 start_jiffies = jiffies;
414 for (;;) { 414 for (;;) {
415 if (altera_pcie_link_is_up(pcie)) 415 if (altera_pcie_link_up(pcie))
416 break; 416 break;
417 417
418 if (time_after(jiffies, start_jiffies + LINK_UP_TIMEOUT)) { 418 if (time_after(jiffies, start_jiffies + LINK_UP_TIMEOUT)) {
@@ -427,7 +427,7 @@ static void altera_pcie_retrain(struct altera_pcie *pcie)
427{ 427{
428 u16 linkcap, linkstat, linkctl; 428 u16 linkcap, linkstat, linkctl;
429 429
430 if (!altera_pcie_link_is_up(pcie)) 430 if (!altera_pcie_link_up(pcie))
431 return; 431 return;
432 432
433 /* 433 /*