mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
phy: lantiq: vrx200-pcie: fix error return code in ltq_vrx200_pcie_phy_power_on()
commit82b5d16441upstream. Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes:e52a632195("phy: lantiq: vrx200-pcie: add a driver for the Lantiq VRX200 PCIe PHY") Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
142cb2bd61
commit
1f51f661fd
@@ -323,7 +323,8 @@ static int ltq_vrx200_pcie_phy_power_on(struct phy *phy)
|
||||
goto err_disable_pdi_clk;
|
||||
|
||||
/* Check if we are in "startup ready" status */
|
||||
if (ltq_vrx200_pcie_phy_wait_for_pll(phy) != 0)
|
||||
ret = ltq_vrx200_pcie_phy_wait_for_pll(phy);
|
||||
if (ret)
|
||||
goto err_disable_phy_clk;
|
||||
|
||||
ltq_vrx200_pcie_phy_apply_workarounds(phy);
|
||||
|
||||
Reference in New Issue
Block a user