]> git.dujemihanovic.xyz Git - u-boot.git/commit
pci: pcie_dw_rockchip: Speed up link probe
authorJonas Karlman <jonas@kwiboo.se>
Sat, 22 Jul 2023 13:30:19 +0000 (13:30 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 28 Jul 2023 10:45:03 +0000 (18:45 +0800)
commit7ce186ada2ce1ece344dacc20244fb91866e435b
tree4fc46bf698ed77e691b2453fc0c1418286356578
parent8b001ee59a9d4a6246098c8bc5bb894a752e7c0b
pci: pcie_dw_rockchip: Speed up link probe

Use a similar pattern and delay values as the linux mainline driver to
speed up failing when nothing is connected.

Reduce fail speed from around 5+ seconds down to around one second on a
Radxa ROCK 3 Model A, where pcie2x1 is probed before pcie3x2 M2 slot.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
drivers/pci/pcie_dw_rockchip.c