Skip to content

Commit 53a08f1

Browse files
Gavin Shanstewartsmith
authored andcommitted
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>
1 parent 88c9fab commit 53a08f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/pcie-slot.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,8 @@ static int64_t pcie_slot_sm_freset(struct pci_slot *slot)
410410
case PCI_SLOT_STATE_FRESET_POWER_OFF:
411411
PCIE_SLOT_DBG(slot, "FRESET: Power is off, turn on\n");
412412
pcie_slot_set_power_state_ext(slot, PCI_SLOT_POWER_ON, false);
413-
pci_slot_set_state(slot, PCI_SLOT_STATE_HRESET_START);
413+
414+
pci_slot_set_state(slot, PCI_SLOT_STATE_LINK_START_POLL);
414415
return pci_slot_set_sm_timeout(slot, msecs_to_tb(50));
415416
default:
416417
prlog(PR_ERR, PCIE_SLOT_PREFIX

0 commit comments

Comments
 (0)