Re: [PATCH v4 0/5] PCI: dwc: Rework the error handling of dw_pcie_wait_for_link() API

From: Manivannan Sadhasivam

Date: Wed Jan 21 2026 - 04:45:07 EST



On Tue, 20 Jan 2026 23:17:39 +0530, Manivannan Sadhasivam wrote:
> This series reworks the dw_pcie_wait_for_link() API to allow the callers to
> detect the absence of the device on the bus and skip the failure.
>
> Compared to v2, I've reworked the patch 2 to improve the API further and
> dropped the patch 1 that got applied (hence changed the subject). I've also
> modified the error code based on the feedback in v2 to return -ENODEV if device
> is not detected on the bus, -EIO if the device is found but not active and
> -ETIMEDOUT otherwise. This allows the callers to skip the failure as needed.
>
> [...]

Applied, thanks!

[1/5] PCI: dwc: Return -ENODEV from dw_pcie_wait_for_link() if device is not found
commit: 1bcf245c837bc66fdaddea222bab9eb5c978a9d7
[2/5] PCI: dwc: Return -EIO from dw_pcie_wait_for_link() if device is not active
commit: 01d16b8afb7afcc17f999f8b4a9b9cfe6c6fae71
[3/5] PCI: dwc: Rename and move ltssm_status_string() to pcie-designware.c
commit: 36dd677f7d76ddec96d50cf57f543ba7d612087c
[4/5] PCI: dwc: Rework the error print of dw_pcie_wait_for_link()
commit: d266f63b385a3bad5fd6f23797b6de57de998677
[5/5] PCI: dwc: Fail dw_pcie_host_init() if dw_pcie_wait_for_link() returns -ETIMEDOUT
commit: 86cbb7a81068434fdc1d5afb96d91ab971fb279e

Best regards,
--
Manivannan Sadhasivam <mani@xxxxxxxxxx>