diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2017-11-09 17:19:47 -0500 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2017-11-09 17:19:47 -0500 |
commit | 1eaa8702129e38b3288a6b50530192ff8bb4fe0a (patch) | |
tree | fdf8af9b2ca48bca980d5329e34395e11c9430a8 | |
parent | 9e66317d3c92ddaab330c125dfe9d06eee268aff (diff) |
PCI: xilinx: Rename xilinx_pcie_link_is_up() to xilinx_pcie_link_up()
Rename xilinx_pcie_link_is_up() to xilinx_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: Michal Simek <michal.simek@xilinx.com>
-rw-r--r-- | drivers/pci/host/pcie-xilinx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pci/host/pcie-xilinx.c b/drivers/pci/host/pcie-xilinx.c index 94e13cb8608f..7b5325990f5e 100644 --- a/drivers/pci/host/pcie-xilinx.c +++ b/drivers/pci/host/pcie-xilinx.c | |||
@@ -129,7 +129,7 @@ static inline void pcie_write(struct xilinx_pcie_port *port, u32 val, u32 reg) | |||
129 | writel(val, port->reg_base + reg); | 129 | writel(val, port->reg_base + reg); |
130 | } | 130 | } |
131 | 131 | ||
132 | static inline bool xilinx_pcie_link_is_up(struct xilinx_pcie_port *port) | 132 | static inline bool xilinx_pcie_link_up(struct xilinx_pcie_port *port) |
133 | { | 133 | { |
134 | return (pcie_read(port, XILINX_PCIE_REG_PSCR) & | 134 | return (pcie_read(port, XILINX_PCIE_REG_PSCR) & |
135 | XILINX_PCIE_REG_PSCR_LNKUP) ? 1 : 0; | 135 | XILINX_PCIE_REG_PSCR_LNKUP) ? 1 : 0; |
@@ -165,7 +165,7 @@ static bool xilinx_pcie_valid_device(struct pci_bus *bus, unsigned int devfn) | |||
165 | 165 | ||
166 | /* Check if link is up when trying to access downstream ports */ | 166 | /* Check if link is up when trying to access downstream ports */ |
167 | if (bus->number != port->root_busno) | 167 | if (bus->number != port->root_busno) |
168 | if (!xilinx_pcie_link_is_up(port)) | 168 | if (!xilinx_pcie_link_up(port)) |
169 | return false; | 169 | return false; |
170 | 170 | ||
171 | /* Only one device down on each root port */ | 171 | /* Only one device down on each root port */ |
@@ -541,7 +541,7 @@ static void xilinx_pcie_init_port(struct xilinx_pcie_port *port) | |||
541 | { | 541 | { |
542 | struct device *dev = port->dev; | 542 | struct device *dev = port->dev; |
543 | 543 | ||
544 | if (xilinx_pcie_link_is_up(port)) | 544 | if (xilinx_pcie_link_up(port)) |
545 | dev_info(dev, "PCIe Link is UP\n"); | 545 | dev_info(dev, "PCIe Link is UP\n"); |
546 | else | 546 | else |
547 | dev_info(dev, "PCIe Link is DOWN\n"); | 547 | dev_info(dev, "PCIe Link is DOWN\n"); |