netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 01/14] tg3: Fix 5906 link problems
@ 2009-02-26  0:21 Matt Carlson
  2009-03-03 20:17 ` Matt Carlson
  0 siblings, 1 reply; 3+ messages in thread
From: Matt Carlson @ 2009-02-26  0:21 UTC (permalink / raw)
  To: davem; +Cc: netdev, Michael Chan, Benjamin Li, andy

Commit 6833c043f9fc03696fde623914c4a0277df2a0bc introduced the phy
auto-powerdown capability.  While the APD feature only works for 5761
and 5784 asic revisions, the (harmless portion of the) code was applied
to all 5705 and newer devices.  However, the 5906 phy departs from the
usual design.  This commit was interfering with the 5906's ability to
negotiate link against some switches.  This patch corrects the problem.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: Benjamin Li <benli@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
---
 drivers/net/tg3.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index 67630fb..c7bbbb1 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -1473,7 +1473,8 @@ static void tg3_phy_toggle_apd(struct tg3 *tp, bool enable)
 {
 	u32 reg;
 
-	if (!(tp->tg3_flags2 & TG3_FLG2_5705_PLUS))
+	if (!(tp->tg3_flags2 & TG3_FLG2_5705_PLUS) ||
+	    GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5906)
 		return;
 
 	reg = MII_TG3_MISC_SHDW_WREN |
-- 
1.6.0.6



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

* Re: [PATCH 01/14] tg3: Fix 5906 link problems
  2009-02-26  0:21 [PATCH 01/14] tg3: Fix 5906 link problems Matt Carlson
@ 2009-03-03 20:17 ` Matt Carlson
  2009-03-04 23:08   ` David Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Matt Carlson @ 2009-03-03 20:17 UTC (permalink / raw)
  To: Matt Carlson
  Cc: davem@davemloft.net, netdev@vger.kernel.org, Michael Chan,
	Benjamin Li, andy@greyhouse.net

Hi David.  Can we also apply this patch into net-2.6?  It fixes a
regression that was introduced during the 2.6.29 development cycle.

On Wed, Feb 25, 2009 at 04:21:20PM -0800, Matt Carlson wrote:
> Commit 6833c043f9fc03696fde623914c4a0277df2a0bc introduced the phy
> auto-powerdown capability.  While the APD feature only works for 5761
> and 5784 asic revisions, the (harmless portion of the) code was applied
> to all 5705 and newer devices.  However, the 5906 phy departs from the
> usual design.  This commit was interfering with the 5906's ability to
> negotiate link against some switches.  This patch corrects the problem.
> 
> Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
> Signed-off-by: Benjamin Li <benli@broadcom.com>
> Signed-off-by: Michael Chan <mchan@broadcom.com>
> ---
>  drivers/net/tg3.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
> index 67630fb..c7bbbb1 100644
> --- a/drivers/net/tg3.c
> +++ b/drivers/net/tg3.c
> @@ -1473,7 +1473,8 @@ static void tg3_phy_toggle_apd(struct tg3 *tp, bool enable)
>  {
>  	u32 reg;
>  
> -	if (!(tp->tg3_flags2 & TG3_FLG2_5705_PLUS))
> +	if (!(tp->tg3_flags2 & TG3_FLG2_5705_PLUS) ||
> +	    GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5906)
>  		return;
>  
>  	reg = MII_TG3_MISC_SHDW_WREN |
> -- 
> 1.6.0.6
> 
> 
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


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

* Re: [PATCH 01/14] tg3: Fix 5906 link problems
  2009-03-03 20:17 ` Matt Carlson
@ 2009-03-04 23:08   ` David Miller
  0 siblings, 0 replies; 3+ messages in thread
From: David Miller @ 2009-03-04 23:08 UTC (permalink / raw)
  To: mcarlson; +Cc: netdev, mchan, benli, andy

From: "Matt Carlson" <mcarlson@broadcom.com>
Date: Tue, 3 Mar 2009 12:17:39 -0800

> Hi David.  Can we also apply this patch into net-2.6?  It fixes a
> regression that was introduced during the 2.6.29 development cycle.

Sure, I'll queue it up to net-2.6

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

end of thread, other threads:[~2009-03-04 23:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-26  0:21 [PATCH 01/14] tg3: Fix 5906 link problems Matt Carlson
2009-03-03 20:17 ` Matt Carlson
2009-03-04 23:08   ` 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).