Commit d0e296ac authored by Dan Murphy's avatar Dan Murphy Committed by Joe Hershberger

net: phy: dp83867: Add SGMII helper for configuration

The code assumed that if the interface is not RGMII configured
then it must be SGMII configured.  This device has the ability
to support most of the MII interfaces.  Therefore add the
helper for SGMII and only configure the device if the interface is
configured for SGMII.
Signed-off-by: default avatarDan Murphy <>
Reviewed-by: default avatarMugunthan V N <>
Reviewed-by: default avatarMichal Simek <>
Acked-by: Joe Hershberger's avatarJoe Hershberger <>
parent 70d4311b
......@@ -221,7 +221,7 @@ static int dp83867_config(struct phy_device *phydev)
(dp83867->fifo_depth << DP83867_PHYCR_FIFO_DEPTH_SHIFT));
if (ret)
goto err_out;
} else {
} else if (phy_interface_is_sgmii(phydev)) {
phy_write(phydev, MDIO_DEVAD_NONE, MII_BMCR,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment