]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethoc: don't advertise gigabit speed on attached PHY
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 3 Feb 2014 23:33:09 +0000 (03:33 +0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Feb 2014 04:19:51 +0000 (20:19 -0800)
commitd875dff186408ffb110e923cea862f13ab5002a6
tree093387cda8a582e13745d26f53e6a068ba1d3fda
parent9b6a70ad9b7805a72e6688b684d2e8961fb4fca1
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