netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] tg3: Fix 5714S / 5715S / 5780S link failures
@ 2008-06-09 18:25 Matt Carlson
  2008-06-09 22:42 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Matt Carlson @ 2008-06-09 18:25 UTC (permalink / raw)
  To: davem; +Cc: netdev, Michael Chan, andy

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>

---
 drivers/net/tg3.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index 07b3f77..4c248d7 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -3168,8 +3168,7 @@ static int tg3_setup_fiber_mii_phy(struct tg3 *tp, int force_reset)
 	err |= tg3_readphy(tp, MII_BMCR, &bmcr);
 
 	if ((tp->link_config.autoneg == AUTONEG_ENABLE) && !force_reset &&
-	    (tp->tg3_flags2 & TG3_FLG2_PARALLEL_DETECT) &&
-	     tp->link_config.flowctrl == tp->link_config.active_flowctrl) {
+	    (tp->tg3_flags2 & TG3_FLG2_PARALLEL_DETECT)) {
 		/* do nothing, just check for link up at the end */
 	} else if (tp->link_config.autoneg == AUTONEG_ENABLE) {
 		u32 adv, new_adv;
-- 
1.5.2.5




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/4] tg3: Fix 5714S / 5715S / 5780S link failures
  2008-06-09 18:25 [PATCH 1/4] tg3: Fix 5714S / 5715S / 5780S link failures Matt Carlson
@ 2008-06-09 22:42 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2008-06-09 22:42 UTC (permalink / raw)
  To: mcarlson; +Cc: netdev, mchan, andy

From: "Matt Carlson" <mcarlson@broadcom.com>
Date: Mon, 9 Jun 2008 11:25:17 -0700

> 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>

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-06-09 22:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-09 18:25 [PATCH 1/4] tg3: Fix 5714S / 5715S / 5780S link failures Matt Carlson
2008-06-09 22:42 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).