提交 499c0106 编写于 作者: B Bjorn Helgaas

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: NBjorn Helgaas <bhelgaas@google.com>
Reviewed-by: NLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: NLey Foon Tan <ley.foon.tan@intel.com>
上级 9e66317d
...@@ -105,7 +105,7 @@ static inline u32 cra_readl(struct altera_pcie *pcie, const u32 reg) ...@@ -105,7 +105,7 @@ static inline u32 cra_readl(struct altera_pcie *pcie, const u32 reg)
return readl_relaxed(pcie->cra_base + reg); return readl_relaxed(pcie->cra_base + reg);
} }
static bool altera_pcie_link_is_up(struct altera_pcie *pcie) static bool altera_pcie_link_up(struct altera_pcie *pcie)
{ {
return !!((cra_readl(pcie, RP_LTSSM) & RP_LTSSM_MASK) == LTSSM_L0); return !!((cra_readl(pcie, RP_LTSSM) & RP_LTSSM_MASK) == LTSSM_L0);
} }
...@@ -142,7 +142,7 @@ static bool altera_pcie_valid_device(struct altera_pcie *pcie, ...@@ -142,7 +142,7 @@ static bool altera_pcie_valid_device(struct altera_pcie *pcie,
{ {
/* If there is no link, then there is no device */ /* If there is no link, then there is no device */
if (bus->number != pcie->root_bus_nr) { if (bus->number != pcie->root_bus_nr) {
if (!altera_pcie_link_is_up(pcie)) if (!altera_pcie_link_up(pcie))
return false; return false;
} }
...@@ -412,7 +412,7 @@ static void altera_wait_link_retrain(struct altera_pcie *pcie) ...@@ -412,7 +412,7 @@ static void altera_wait_link_retrain(struct altera_pcie *pcie)
/* Wait for link is up */ /* Wait for link is up */
start_jiffies = jiffies; start_jiffies = jiffies;
for (;;) { for (;;) {
if (altera_pcie_link_is_up(pcie)) if (altera_pcie_link_up(pcie))
break; break;
if (time_after(jiffies, start_jiffies + LINK_UP_TIMEOUT)) { if (time_after(jiffies, start_jiffies + LINK_UP_TIMEOUT)) {
...@@ -427,7 +427,7 @@ static void altera_pcie_retrain(struct altera_pcie *pcie) ...@@ -427,7 +427,7 @@ static void altera_pcie_retrain(struct altera_pcie *pcie)
{ {
u16 linkcap, linkstat, linkctl; u16 linkcap, linkstat, linkctl;
if (!altera_pcie_link_is_up(pcie)) if (!altera_pcie_link_up(pcie))
return; return;
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册