Skip to content

Commit

Permalink
phb4: Minimise wait when moving through FRESET states
Browse files Browse the repository at this point in the history
We want to get through this as fast as possible so minimise by
removing msecs_to_tb() call.  Changes number passed from 512 -> 1.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
(cherry picked from commit da05882)
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
  • Loading branch information
mikey authored and stewartsmith committed Jul 11, 2018
1 parent 81888d6 commit 28bf820
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/phb4.c
Original file line number Diff line number Diff line change
Expand Up @@ -2839,7 +2839,7 @@ static int64_t phb4_freset(struct pci_slot *slot)
phb4_training_trace(p);

/* Move on to link poll right away */
return pci_slot_set_sm_timeout(slot, msecs_to_tb(1));
return pci_slot_set_sm_timeout(slot, 1);
case PHB4_SLOT_FRESET_DEASSERT_DELAY:
pci_slot_set_state(slot, PHB4_SLOT_LINK_START);
return slot->ops.poll_link(slot);
Expand Down

0 comments on commit 28bf820

Please sign in to comment.