net: ethoc: don't advertise gigabit speed on attached PHY
commit445a48cc9df90775d6479ef4c73d3a90184af4ed
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 3 Feb 2014 23:33:09 +0000 (4 03:33 +0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Feb 2014 04:19:51 +0000 (4 20:19 -0800)
tree093387cda8a582e13745d26f53e6a068ba1d3fda
parent5273e3a5ca94fbeb8e07d31203069220d5e682aa
net: ethoc: don't advertise gigabit speed on attached PHY

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>
drivers/net/ethernet/ethoc.c