Skip to content

Commit f96b697

Browse files
thom24kwilczynski
authored andcommitted
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/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>
1 parent 6aa9c09 commit f96b697

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/pci/controller/cadence/pci-j721e.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ static int j721e_pcie_probe(struct platform_device *pdev)
576576
* after 100 us.
577577
*/
578578
if (gpiod) {
579-
usleep_range(100, 200);
579+
fsleep(PCIE_T_PERST_CLK_US);
580580
gpiod_set_value_cansleep(gpiod, 1);
581581
}
582582

0 commit comments

Comments
 (0)