]> git.baikalelectronics.ru Git - kernel.git/commit
tg3: Minor EEE code tweaks
authorMatt Carlson <mcarlson@broadcom.com>
Mon, 6 Dec 2010 08:28:52 +0000 (08:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Dec 2010 19:03:47 +0000 (11:03 -0800)
commitf561388e73c9bd1c0aa66bd06459e09a8de26a40
tree82f050a3cc08db4a0dc4be03f9d3660e5dccbb29
parentc9928e942b342a965bb74a803194de47c986d268
tg3: Minor EEE code tweaks

The first hunk of this patch makes sure that the driver checks for the
appropriate preconditions before checking if EEE negotiation succeeded.
More specifically the link needs to be full duplex for EEE to be
enabled.

The second and third hunks of this patch fix a bug where the eee
advertisement register would be programmed with extra bits set.

The fourth hunk of this patch makes sure the EEE capability flag is not
set for 5718 A0 devices and that the device is not a serdes device.

None of these modifications are strictly necessary.  The driver /
hardware still does the right thing.  They are submitted primarily for
correctness.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Reviewed-by: Benjamin Li <benli@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c