]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[TG3]: Fix supporting flowctrl code
authorMatt Carlson <mcarlson@broadcom.com>
Fri, 21 Dec 2007 04:10:01 +0000 (20:10 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:59:34 +0000 (14:59 -0800)
commitef167e27039eeaea6d3cdd5c547b082e89840bdd
treefd7d1b76a867472dd26ce3a866eea59e30422983
parent5be73b471bbed9ca61ddfd952a2cb7701f94f034
[TG3]: Fix supporting flowctrl code

This patch does three things.  It modifies tg3_setup_flow_control() to
use the administrator requested flow control settings if
autonegotiation is turned off.  It slightly modifies the
tg3_setup_fiber_mii_phy() function to account for this new use case.
And finally, it does the same for tg3_setup_copper_phy().

The copper modifications are more than a small multi-line change.  The
new code makes an attempt to avoid a link renegotiation if the link is
active at half duplex and the only difference between the current
advertised settings and requested advertised settings is the
flow control advertisements.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c