[Skiboot] [PATCH] core/pci: Avoid hreset after freset
Gavin Shan
gwshan at linux.vnet.ibm.com
Fri Jan 6 11:44:24 AEDT 2017
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 at linux.vnet.ibm.com>
Signed-off-by: Gavin Shan <gwshan at linux.vnet.ibm.com>
---
core/pcie-slot.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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
--
2.7.4
More information about the Skiboot
mailing list