diff options
author | Gavin Shan <gwshan@linux.vnet.ibm.com> | 2017-01-06 11:44:24 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-02-16 18:12:53 +1100 |
commit | 53a08f13e3310bec362c2ddf2aba1851e053fa14 (patch) | |
tree | b558fe3277bc4cfc7cfa47a85825f79a019d40fe /core | |
parent | 88c9fabf22d4f080937982190cb8767b32f5c93c (diff) | |
download | skiboot-53a08f13e3310bec362c2ddf2aba1851e053fa14.zip skiboot-53a08f13e3310bec362c2ddf2aba1851e053fa14.tar.gz skiboot-53a08f13e3310bec362c2ddf2aba1851e053fa14.tar.bz2 |
core/pci: Avoid hreset after freset
Commit 5ac71c9 ("pci: Avoid hot resets at boot time") missed to
avoid hot reset after fundamental reset for PCIe common slots.
This fixes it.
Cc: stable # 5.3.x
Reported-by: Guilherme G. Piccoli <gpiccoli@linux.vnet.ibm.com>
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Reviewed-by: Russell Currey <ruscur@russell.cc>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/pcie-slot.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/pcie-slot.c b/core/pcie-slot.c index f9bef64..11354ed 100644 --- a/core/pcie-slot.c +++ b/core/pcie-slot.c @@ -410,7 +410,8 @@ static int64_t pcie_slot_sm_freset(struct pci_slot *slot) case PCI_SLOT_STATE_FRESET_POWER_OFF: PCIE_SLOT_DBG(slot, "FRESET: Power is off, turn on\n"); pcie_slot_set_power_state_ext(slot, PCI_SLOT_POWER_ON, false); - pci_slot_set_state(slot, PCI_SLOT_STATE_HRESET_START); + + pci_slot_set_state(slot, PCI_SLOT_STATE_LINK_START_POLL); return pci_slot_set_sm_timeout(slot, msecs_to_tb(50)); default: prlog(PR_ERR, PCIE_SLOT_PREFIX |