Commit 2c2ab8d6 authored by Nathan Rossi's avatar Nathan Rossi Committed by Joe Hershberger

net: zynq_gem: Fix masking of supported phydev features

When the zynq_gem driver initializes the phy it sets the supported
features that the phy can support and advertise. However instead of
masking the supported features such that it limits the available
features it sets the phy to have the exact supported features of the
zynq_gem. This is problematic as it will enable features that a phy does
not have or cannot advertise.

Specifically this appears as an issue when using a phy that is only
capable of 10/100, but the zynq_gem driver will override this and try to
enable and advertise 10/100/1000.
Reported-by: default avatarArno Steffens <>
Fixes: 80243528 ("net: gem: Fix gem driver on 1Gbps LAN")
Signed-off-by: default avatarNathan Rossi <>
Tested-by: default avatarArno Steffens <>
Cc: Joe Hershberger <>
Cc: Michal Simek <>
Acked-by: default avatarJoe Hershberger <>
Acked-by: default avatarMichal Simek <>
parent 3fd2b3aa
......@@ -340,7 +340,7 @@ static int zynq_phy_init(struct udevice *dev)
if (!priv->phydev)
return -ENODEV;
priv->phydev->supported = supported | ADVERTISED_Pause |
priv->phydev->supported &= supported | ADVERTISED_Pause |
priv->phydev->advertising = priv->phydev->supported;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment