From: Yoshihiro Shimoda Date: Wed, 18 Oct 2023 08:56:17 +0000 (+0900) Subject: PCI: Add T_PVPERL macro X-Git-Tag: io_uring-6.7-2023-11-10~23^2~7^2~15 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=164f66be0c2523e65df41b755c41b7c9ff58035a;p=linux-block.git PCI: Add T_PVPERL macro According to the PCIe CEM r5.0, sec 2.9.2, Power stable to PERST# inactive interval is 100 ms as minimum. Add a macro so that the PCIe controller drivers can make use of it. Link: https://lore.kernel.org/linux-pci/20231018085631.1121289-2-yoshihiro.shimoda.uh@renesas.com Signed-off-by: Yoshihiro Shimoda Signed-off-by: Krzysztof WilczyƄski Reviewed-by: Manivannan Sadhasivam Reviewed-by: Serge Semin --- diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index 39a8932dc340..5ecbcf041179 100644 --- a/drivers/pci/pci.h +++ b/drivers/pci/pci.h @@ -13,6 +13,9 @@ #define PCIE_LINK_RETRAIN_TIMEOUT_MS 1000 +/* Power stable to PERST# inactive from PCIe card Electromechanical Spec */ +#define PCIE_T_PVPERL_MS 100 + /* * PCIe r6.0, sec 5.3.3.2.1 * Recommends 1ms to 10ms timeout to check L2 ready.