Message ID | 20180629063221.30731-2-mikey@neuling.org |
---|---|
State | Accepted |
Headers | show |
Series | [1/3] phb4: Minimise wait when moving through FRESET states | expand |
diff --git a/hw/phb4.c b/hw/phb4.c index 755bfe2034..d9a729369b 100644 --- a/hw/phb4.c +++ b/hw/phb4.c @@ -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:
I'm going to defer training to this state soon, so move the tracing first. Signed-off-by: Michael Neuling <mikey@neuling.org> --- hw/phb4.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)