aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Richard <[email protected]>2024-06-19 12:15:14 +0200
committerKrzysztof Wilczyński <[email protected]>2024-09-04 14:09:33 +0000
commitf96b6971373382855bc964f1c067bd6dc41cf0ab (patch)
tree80182771154238d90b8fc3033a4b72758ad45d13
parent6aa9c09f1bcd339749b249830c604871740df268 (diff)
PCI: j721e: Use T_PERST_CLK_US macro
Use the T_PERST_CLK_US macro, and the fsleep() function instead of usleep_range(). Link: https://lore.kernel.org/linux-pci/[email protected] Signed-off-by: Thomas Richard <[email protected]> Signed-off-by: Krzysztof Wilczyński <[email protected]>
-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 c7f40920e061..4096cdd6e8ee 100644
--- a/drivers/pci/controller/cadence/pci-j721e.c
+++ b/drivers/pci/controller/cadence/pci-j721e.c
@@ -576,7 +576,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);
}