On 8/31/2018 2:26 PM, Keith Busch wrote:
/* + * PCIe 4.0r1 6.6.1, a component must enter LTSSM Detect within 20ms, + * after which we should expect an link active if the reset was + * successful. If so, software must wait a minimum 100ms before sending + * configuration requests to devices downstream this port. + * + * If the link fails to activate, either the device was physically + * removed or the link is permanently failed. + */ + msleep(20); + if (!pcie_wait_for_link(pdev, true)) + return PCI_ERS_RESULT_DISCONNECT; + msleep(100);
Can you move these wait statements and spec reference inside the pcie_wait_for_link() function?
Nit. There are some whitespace changes in this file.