Message ID | 20170912045619.31386-5-mikey@neuling.org |
---|---|
State | Accepted |
Headers | show |
Series | [1/6] phb4: Remove stable retries | expand |
diff --git a/hw/phb4.c b/hw/phb4.c index b8d87062d3..8c24238f8e 100644 --- a/hw/phb4.c +++ b/hw/phb4.c @@ -2800,7 +2800,7 @@ static struct pci_slot *phb4_slot_create(struct phb *phb) slot->ops.hreset = phb4_hreset; slot->ops.freset = phb4_freset; slot->ops.creset = phb4_creset; - slot->link_retries = 3; + slot->link_retries = PHB4_LINK_LINK_RETRIES; return slot; } diff --git a/include/phb4.h b/include/phb4.h index 503d3f1467..6f865b6e1c 100644 --- a/include/phb4.h +++ b/include/phb4.h @@ -214,6 +214,7 @@ struct phb4_err { uint32_t err_bit; }; +#define PHB4_LINK_LINK_RETRIES 3 /* Link timeouts, increments of 10ms */ #define PHB4_LINK_ELECTRICAL_RETRIES 100 #define PHB4_LINK_WAIT_RETRIES 200
Make link retries a #define rather than open coding it in the PHB4 init code. Signed-off-by: Michael Neuling <mikey@neuling.org> --- hw/phb4.c | 2 +- include/phb4.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)