Skip to content

Commit c388de1

Browse files
Joao Pintobjorn-helgaas
authored andcommitted
PCI: designware: Move link wait definitions to .c file
Move the link wait sleep definitions to the .c file as suggested by Jisheng Zhang in a previous patch. Signed-off-by: Joao Pinto <jpinto@synopsys.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> CC: Jisheng Zhang <jszhang@marvell.com>
1 parent 446fc23 commit c388de1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

drivers/pci/host/pcie-designware.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@
2626

2727
#include "pcie-designware.h"
2828

29+
/* Parameters for the waiting for link up routine */
30+
#define LINK_WAIT_MAX_RETRIES 10
31+
#define LINK_WAIT_USLEEP_MIN 90000
32+
#define LINK_WAIT_USLEEP_MAX 100000
33+
2934
/* Synopsis specific PCIE configuration registers */
3035
#define PCIE_PORT_LINK_CONTROL 0x710
3136
#define PORT_LINK_MODE_MASK (0x3f << 16)

drivers/pci/host/pcie-designware.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@
2222
#define MAX_MSI_IRQS 32
2323
#define MAX_MSI_CTRLS (MAX_MSI_IRQS / 32)
2424

25-
/* Parameters for the waiting for link up routine */
26-
#define LINK_WAIT_MAX_RETRIES 10
27-
#define LINK_WAIT_USLEEP_MIN 90000
28-
#define LINK_WAIT_USLEEP_MAX 100000
29-
3025
struct pcie_port {
3126
struct device *dev;
3227
u8 root_bus_nr;

0 commit comments

Comments
 (0)