Re: [PATCH] PCI: cadence: skip the link polling when endpoint not connected
From: Chen Wang
Date: Mon Jun 08 2026 - 02:27:10 EST
On 6/5/2026 3:19 PM, Aksh Garg wrote:
cdns_pcie_host_wait_for_link() polls on link-up for 10 retries with a
delay of 90-100ms each (~1 second). A call to cdns_pcie_host_link_setup()
during the resume operation blocks the resume operation unnecessarily for
~1s even when no endpoint device is connected.
Add skip_link_polling flag to track link state across suspend/resume
cycles. If link was down before suspend, skip the expensive polling
in resume since no endpoint was present.
Signed-off-by: Aksh Garg <a-garg7@xxxxxx>
Reviewed-by: Chen Wang <unicorn_wang@xxxxxxxxxxx>
[......]