sfc: If AN is enabled, always read speed/duplex from the AN advertising bits
authorBen Hutchings <bhutchings@solarflare.com>
Fri, 26 Dec 2008 21:49:25 +0000 (13:49 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Dec 2008 21:49:25 +0000 (13:49 -0800)
When AN is enabled and the link is down the speed/duplex control bits
will not be meaningful.  Use the advertising bits instead, and mask
them with the LPA bits if and only if AN is complete (as before).

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found