]> bbs.cooldavid.org Git - net-next-2.6.git/commit - drivers/net/tg3.c
tg3: Fix 5714S / 5715S / 5780S link failures
authorMatt Carlson <mcarlson@broadcom.com>
Mon, 9 Jun 2008 22:39:55 +0000 (15:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Jun 2008 22:39:55 +0000 (15:39 -0700)
commit2bd3ed0479c35f7c8dadecf72b725ca0c20ea015
treeb9bfd56e23a161a50dcfd340ae2a70844e288341
parentb6b16196b064bbff83e8161359f8b73465d4aa36
tg3: Fix 5714S / 5715S / 5780S link failures

The git commit ef167e27039eeaea6d3cdd5c547b082e89840bdd entitled
"Fix supporting flowctrl code" introduced a bug that prevents 5714S,
5715S and 5780S devices from falling back to a forced link mode.  The
problem is that the added flow control check will always fail if flow
control is set to autoneg and either RX or TX (or both) flow control
is enabled.  The driver defaults to setting flow control to autoneg
and advertises both RX and TX flow control.

The fix is to remove the errant check.

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