[PATCH] PCI: aardvark: Disable PHY on probe failures

Manivannan Sadhasivam mani at kernel.org
Sun Sep 27 19:11:25 PDT 2026


On Thu, 10 Sep 2026 18:17:25 -0400, Myeonghun Pak wrote:
> advk_pcie_setup_phy() initializes and powers on the PHY before the
> emulated bridge and IRQ domains are created.  If any of those later
> initialization steps or pci_host_probe() fails, probe returns without
> powering off or exiting the PHY.
> 
> Replace the direct returns with staged cleanup labels.  Remove IRQ
> domains in reverse order, release the emulated bridge allocation only
> after successful initialization, and disable the PHY on every failure
> after advk_pcie_setup_phy() succeeds.  A setup_phy() failure still
> returns directly, so its partial internal cleanup is not repeated.
> 
> [...]

Applied, thanks!

[1/1] PCI: aardvark: Disable PHY on probe failures
      commit: 28cc5bc5a6c6cffbe7ba27c0acbfbe06747fa173

Best regards,
-- 
மணிவண்ணன் சதாசிவம்





More information about the linux-arm-kernel mailing list