summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc
diff options
context:
space:
mode:
authorMyeonghun Pak <mhun512@gmail.com>2026-09-10 18:17:25 -0400
committerManivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>2026-09-28 04:09:40 +0200
commit28cc5bc5a6c6cffbe7ba27c0acbfbe06747fa173 (patch)
tree64e7fbfcaad0fbbc587927c122ee848d824def23 /rust/kernel/alloc
parentcee9395acd8043be0644b25c34bfa86623f2b935 (diff)
PCI: aardvark: Disable PHY on probe failures
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. Fixes: 366697018c9a ("PCI: aardvark: Add PHY support") Co-developed-by: Ijae Kim <ae878000@gmail.com> Signed-off-by: Ijae Kim <ae878000@gmail.com> Signed-off-by: Myeonghun Pak <mhun512@gmail.com> Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com> Link: https://patch.msgid.link/20260910221725.91980-1-mhun512@gmail.com
Diffstat (limited to 'rust/kernel/alloc')
0 files changed, 0 insertions, 0 deletions