bnx2: Advertise nothing when speed is forced
authorMichael Chan <mchan@broadcom.com>
Wed, 1 Jan 2014 07:22:32 +0000 (23:22 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Jan 2014 03:03:37 +0000 (22:03 -0500)
commitd17e53bdcd72fa06e06f7408779fb17dcefdb930
tree4471d7cc74a20dff81c712e9f743b7d70b56ec3c
parente971522864e7d19060711276fdb071f8b795bde5
bnx2: Advertise nothing when speed is forced

The current code does not reset the advertisement register when the speed
is forced, leaving the default advertisement value of 10 Mbps.  This does
not work with some link partners when the next patch enables auto-mdix.

Set advertisement register to 0 if the speed is forced.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2.c