PCI: j721e: Deassert PERST# after a delay of PCIE_T_PVPERL_MS milliseconds
authorSiddharth Vadapalli <s-vadapalli@ti.com>
Mon, 4 Nov 2024 07:44:20 +0000 (13:14 +0530)
committerKrzysztof Wilczyński <kwilczynski@kernel.org>
Mon, 4 Nov 2024 12:43:36 +0000 (12:43 +0000)
commit22a9120479a40a56c13c5e473a0100fad2e017c0
treee2b08ffd3dd7c131705b4a543574f130224501fb
parent08e835268c35e851b308f326357224248cfb445b
PCI: j721e: Deassert PERST# after a delay of PCIE_T_PVPERL_MS milliseconds

According to Section 2.2 of the PCI Express Card Electromechanical
Specification (Revision 5.1), in order to ensure that the power and the
reference clock are stable, PERST# has to be deasserted after a delay of
100 milliseconds (TPVPERL).

Currently, it is being assumed that the power is already stable, which
is not necessarily true.

Hence, change the delay to PCIE_T_PVPERL_MS to guarantee that power and
reference clock are stable.

Fixes: f3e25911a430 ("PCI: j721e: Add TI J721E PCIe driver")
Fixes: f96b69713733 ("PCI: j721e: Use T_PERST_CLK_US macro")
Link: https://lore.kernel.org/r/20241104074420.1862932-1-s-vadapalli@ti.com
Signed-off-by: Siddharth Vadapalli <s-vadapalli@ti.com>
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
drivers/pci/controller/cadence/pci-j721e.c