Skip to content

Commit

Permalink
phb4: Move training trace logging to next state.
Browse files Browse the repository at this point in the history
I'm going to defer training to this state soon, so move the tracing
first.

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

phb4_training_trace(p);

/* Move on to link poll right away */
return pci_slot_set_sm_timeout(slot, 1);
case PHB4_SLOT_FRESET_DEASSERT_DELAY:
phb4_training_trace(p);

pci_slot_set_state(slot, PHB4_SLOT_LINK_START);
return slot->ops.poll_link(slot);
default:
Expand Down

0 comments on commit f09894a

Please sign in to comment.