Skip to content

Commit

Permalink
net: ethoc: don't advertise gigabit speed on attached PHY
Browse files Browse the repository at this point in the history
OpenCores 10/100 Mbps MAC does not support speeds above 100 Mbps, but does
not disable advertisement when PHY supports them. This results in
non-functioning network when the MAC is connected to a gigabit PHY connected
to a gigabit switch.

The fix is to disable gigabit speed advertisement on attached PHY
unconditionally.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Max Filippov authored and David S. Miller committed Feb 5, 2014
1 parent 5273e3a commit 445a48c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/net/ethernet/ethoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,11 @@ static int ethoc_mdio_probe(struct net_device *dev)
}

priv->phy = phy;
phy->advertising &= ~(ADVERTISED_1000baseT_Full |
ADVERTISED_1000baseT_Half);
phy->supported &= ~(SUPPORTED_1000baseT_Full |
SUPPORTED_1000baseT_Half);

return 0;
}

Expand Down

0 comments on commit 445a48c

Please sign in to comment.