phy: Wire return value from phy_config()
Fix zynq_gem driver to handle error from phy_config correctly. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
62afc60188
commit
7a673f0b06
@ -879,9 +879,7 @@ __weak int board_phy_config(struct phy_device *phydev)
|
|||||||
int phy_config(struct phy_device *phydev)
|
int phy_config(struct phy_device *phydev)
|
||||||
{
|
{
|
||||||
/* Invoke an optional board-specific helper */
|
/* Invoke an optional board-specific helper */
|
||||||
board_phy_config(phydev);
|
return board_phy_config(phydev);
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int phy_shutdown(struct phy_device *phydev)
|
int phy_shutdown(struct phy_device *phydev)
|
||||||
|
@ -352,9 +352,8 @@ static int zynq_phy_init(struct udevice *dev)
|
|||||||
priv->phydev->supported = supported | ADVERTISED_Pause |
|
priv->phydev->supported = supported | ADVERTISED_Pause |
|
||||||
ADVERTISED_Asym_Pause;
|
ADVERTISED_Asym_Pause;
|
||||||
priv->phydev->advertising = priv->phydev->supported;
|
priv->phydev->advertising = priv->phydev->supported;
|
||||||
phy_config(priv->phydev);
|
|
||||||
|
|
||||||
return 0;
|
return phy_config(priv->phydev);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int zynq_gem_init(struct udevice *dev)
|
static int zynq_gem_init(struct udevice *dev)
|
||||||
|
Loading…
Reference in New Issue
Block a user