mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-03-31 16:52:46 +07:00
stmmac: Remove unbalanced clk_disable call
The stmmac_open call was calling clk_disable_unprepare on phy init failure, but it never calls clk_prepare_enable, this causes a WARN_ON in the clk framework to trigger if for some reason phy init fails. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> Acked-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
4de462ab63
commit
89df20d951
@ -1704,7 +1704,7 @@ static int stmmac_open(struct net_device *dev)
|
|||||||
if (ret) {
|
if (ret) {
|
||||||
pr_err("%s: Cannot attach to PHY (error: %d)\n",
|
pr_err("%s: Cannot attach to PHY (error: %d)\n",
|
||||||
__func__, ret);
|
__func__, ret);
|
||||||
goto phy_error;
|
return ret;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1779,8 +1779,6 @@ static int stmmac_open(struct net_device *dev)
|
|||||||
dma_desc_error:
|
dma_desc_error:
|
||||||
if (priv->phydev)
|
if (priv->phydev)
|
||||||
phy_disconnect(priv->phydev);
|
phy_disconnect(priv->phydev);
|
||||||
phy_error:
|
|
||||||
clk_disable_unprepare(priv->stmmac_clk);
|
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user