summaryrefslogtreecommitdiff
path: root/drivers/pci
diff options
context:
space:
mode:
authorThomas Richard <thomas.richard@bootlin.com>2024-06-19 12:15:14 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-09 10:32:27 +0100
commitbea0c0e4013bd62b66200219e16a02095f63a4fd (patch)
treeb57b38ebcd73656f186d411386bc8c5a20577130 /drivers/pci
parent0a289ca90225cea3ab59da30668ce8d8f95b7804 (diff)
downloadlinux-bea0c0e4013bd62b66200219e16a02095f63a4fd.tar.gz
linux-bea0c0e4013bd62b66200219e16a02095f63a4fd.tar.bz2
linux-bea0c0e4013bd62b66200219e16a02095f63a4fd.zip
PCI: j721e: Use T_PERST_CLK_US macro
[ Upstream commit f96b6971373382855bc964f1c067bd6dc41cf0ab ] Use the T_PERST_CLK_US macro, and the fsleep() function instead of usleep_range(). Link: https://lore.kernel.org/linux-pci/20240102-j7200-pcie-s2r-v7-6-a2f9156da6c3@bootlin.com Signed-off-by: Thomas Richard <thomas.richard@bootlin.com> Signed-off-by: Krzysztof WilczyƄski <kwilczynski@kernel.org> Stable-dep-of: 22a9120479a4 ("PCI: j721e: Deassert PERST# after a delay of PCIE_T_PVPERL_MS milliseconds") Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/controller/cadence/pci-j721e.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/controller/cadence/pci-j721e.c b/drivers/pci/controller/cadence/pci-j721e.c
index 82f8c3a701c2..b83ae35a210f 100644
--- a/drivers/pci/controller/cadence/pci-j721e.c
+++ b/drivers/pci/controller/cadence/pci-j721e.c
@@ -520,7 +520,7 @@ static int j721e_pcie_probe(struct platform_device *pdev)
* after 100 us.
*/
if (gpiod) {
- usleep_range(100, 200);
+ fsleep(PCIE_T_PERST_CLK_US);
gpiod_set_value_cansleep(gpiod, 1);
}