Skip to content

Commit

Permalink
phb4: Make link retries a #define
Browse files Browse the repository at this point in the history
Make link retries a #define rather than open coding it in the PHB4
init code.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
  • Loading branch information
mikey authored and stewartsmith committed Sep 13, 2017
1 parent 179cf18 commit 3e9d7d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hw/phb4.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
1 change: 1 addition & 0 deletions include/phb4.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3e9d7d5

Please sign in to comment.