diff options
| author | Niklas Cassel <[email protected]> | 2025-06-25 10:23:52 +0000 |
|---|---|---|
| committer | Manivannan Sadhasivam <[email protected]> | 2025-06-25 13:26:04 +0000 |
| commit | d7467bc72ce4e3f64062017d6c9ae3816e8a7b0e (patch) | |
| tree | b766f45c32fa4395445d96e3b9d373a777cdb90a /drivers/pci/controller/dwc/pcie-designware.h | |
| parent | PCI: dwc: Ensure that dw_pcie_wait_for_link() waits 100 ms after link up (diff) | |
| download | kernel-d7467bc72ce4e3f64062017d6c9ae3816e8a7b0e.tar.gz kernel-d7467bc72ce4e3f64062017d6c9ae3816e8a7b0e.zip | |
PCI: Move link up wait time and max retries macros to pci.h
Move the LINK_WAIT_SLEEP_MS and LINK_WAIT_MAX_RETRIES macros to pci.h.
Prefix the macros with PCIE_ in order to avoid redefining these for
drivers that already have macros named like this.
No functional changes.
Suggested-by: Manivannan Sadhasivam <[email protected]>
Signed-off-by: Niklas Cassel <[email protected]>
Signed-off-by: Manivannan Sadhasivam <[email protected]>
Link: https://patch.msgid.link/[email protected]
Diffstat (limited to 'drivers/pci/controller/dwc/pcie-designware.h')
| -rw-r--r-- | drivers/pci/controller/dwc/pcie-designware.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/pci/controller/dwc/pcie-designware.h b/drivers/pci/controller/dwc/pcie-designware.h index ce9e18554e42..1bf1e08ab4c3 100644 --- a/drivers/pci/controller/dwc/pcie-designware.h +++ b/drivers/pci/controller/dwc/pcie-designware.h @@ -62,10 +62,6 @@ #define dw_pcie_cap_set(_pci, _cap) \ set_bit(DW_PCIE_CAP_ ## _cap, &(_pci)->caps) -/* Parameters for the waiting for link up routine */ -#define LINK_WAIT_MAX_RETRIES 10 -#define LINK_WAIT_SLEEP_MS 90 - /* Parameters for the waiting for iATU enabled routine */ #define LINK_WAIT_MAX_IATU_RETRIES 5 #define LINK_WAIT_IATU 9 |
