]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
PCI: j721e: Use T_PERST_CLK_US macro
authorThomas Richard <thomas.richard@bootlin.com>
Wed, 19 Jun 2024 10:15:14 +0000 (12:15 +0200)
committerKrzysztof Wilczyński <kwilczynski@kernel.org>
Wed, 4 Sep 2024 14:09:33 +0000 (14:09 +0000)
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>
drivers/pci/controller/cadence/pci-j721e.c

index c7f40920e061eee81806c9bb96fc8bf36b444d89..4096cdd6e8ee7c616e278961a64b9b870992c8bf 100644 (file)
@@ -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);
                }