1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00

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>
This commit is contained in:
Thomas Richard 2024-06-19 12:15:14 +02:00 committed by Krzysztof Wilczyński
parent 6aa9c09f1b
commit f96b697137
No known key found for this signature in database
GPG key ID: 7C64768D3DE334E7

View 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);
}