]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: imx6: Fix missing call to phy_power_off() in error handling
authorFrank Li <Frank.Li@nxp.com>
Mon, 29 Jul 2024 20:18:10 +0000 (16:18 -0400)
committerKrzysztof Wilczyński <kwilczynski@kernel.org>
Mon, 9 Sep 2024 14:08:19 +0000 (14:08 +0000)
commit5b04d44d5c74e4d8aab1678496b84700b4b343fe
tree11213bd251c6a46eae70c965204306985e896a78
parent5cb3aa92c7cf182940ae575c3f450d3708af087c
PCI: imx6: Fix missing call to phy_power_off() in error handling

Fix missing call to phy_power_off() in the error path of
imx6_pcie_host_init(). Remove unnecessary check for imx6_pcie->phy
as the PHY API already handles NULL pointers.

Fixes: cbcf8722b523 ("phy: freescale: imx8m-pcie: Fix the wrong order of phy_init() and phy_power_on()")
Link: https://lore.kernel.org/linux-pci/20240729-pci2_upstream-v8-3-b68ee5ef2b4d@nxp.com
Signed-off-by: Frank Li <Frank.Li@nxp.com>
[kwilczynski: commit log]
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Cc: <stable@vger.kernel.org> # 6.1+
drivers/pci/controller/dwc/pci-imx6.c