linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] niu: fix PHY template choice for 10G copper
@ 2009-02-17 11:43 Constantin Baranov
  0 siblings, 0 replies; 2+ messages in thread
From: Constantin Baranov @ 2009-02-17 11:43 UTC (permalink / raw)
  To: David S. Miller; +Cc: netdev, linux-kernel

Fixed a typo in niu_determine_phy_disposition() which resulted in
phy_template_1g_copper being selected for 10G/copper configuration.

Signed-off-by: Constantin Baranov <baranov@mercdev.com>
---
While working on support of link speed setting I discovered this piece
of code which seemed pretty strange to me. I believe this to be just a
typo. With its current state the code for 10G/copper card initialization
will likely be broken by the second patch alone (as it changes the way
the 1G card is initialized), this is why I'm submitting these two
patches together. I was unable to find any 10G/copper Neptune cards
available for testing, so I'm asking for the help of the community.

Can anyone on the list confirm that the current driver works for
10G/copper? This would be much appreciated.

David, could you please clarify which is the correct way to initialize
10G/copper card? If I'm wrong, and 1G code must really work with 10G
cards, could you please describe which would be the best way to separate
1G and 10G branches in the xcvr_init_1g() and link_status_1g() routines?

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

diff --git a/drivers/net/niu.c b/drivers/net/niu.c
index 0c0b752..15c9e5f 100644
--- a/drivers/net/niu.c
+++ b/drivers/net/niu.c
@@ -2456,7 +2456,7 @@ static int niu_determine_phy_disposition(struct niu *np)
 
 		case NIU_FLAGS_10G:
 			/* 10G copper */
-			tp = &phy_template_1g_copper;
+			tp = &phy_template_10g_copper;
 			break;
 
 		case NIU_FLAGS_FIBER:
-- 
1.6.0.6


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

* Re: [PATCH 1/2] niu: fix PHY template choice for 10G copper
       [not found] <20090217103833.ec37526d.baranov@mercdev.com>
@ 2009-02-19  1:53 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2009-02-19  1:53 UTC (permalink / raw)
  To: baranov; +Cc: netdev, linux-kernel

From: Constantin Baranov <baranov@mercdev.com>
Date: Tue, 17 Feb 2009 10:38:33 +0400

> Fixed a typo in niu_determine_phy_disposition() which resulted in
> phy_template_1g_copper being selected for 10G/copper configuration.
> 
> Signed-off-by: Constantin Baranov <baranov@mercdev.com>

10g copper cards pretty much don't exist, which is probably why
nobody has hit this problem :-)

Patch applied, thanks.

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

end of thread, other threads:[~2009-02-19  1:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-17 11:43 [PATCH 1/2] niu: fix PHY template choice for 10G copper Constantin Baranov
     [not found] <20090217103833.ec37526d.baranov@mercdev.com>
2009-02-19  1:53 ` 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).