netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [re-resend] [PATCH 2.6.25] BNX2X: prevent ethtool setting of port type
@ 2008-03-18  9:36 Eliezer Tamir
  2008-03-20 22:56 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Eliezer Tamir @ 2008-03-18  9:36 UTC (permalink / raw)
  To: davem@davemloft.net, jeff@garzik.org, netdev@vger.kernel.org

BNX2X: prevent ethtool setting of port type

On 10GBaseT boards setting the type to TP will cause the driver to try
to configure 1GBaseT.
Since there are currently no boards that support setting of the port
type, disable this for now.

Signed-off-by: Eliezer Tamir <eliezert@broadcom.com>

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

diff --git a/drivers/net/bnx2x.c b/drivers/net/bnx2x.c
index 8af142c..de32b3f 100644
--- a/drivers/net/bnx2x.c
+++ b/drivers/net/bnx2x.c
@@ -63,8 +63,8 @@
 #include "bnx2x.h"
 #include "bnx2x_init.h"
 
-#define DRV_MODULE_VERSION      "1.40.22"
-#define DRV_MODULE_RELDATE      "2007/11/27"
+#define DRV_MODULE_VERSION      "1.42.3"
+#define DRV_MODULE_RELDATE      "2008/3/9"
 #define BNX2X_BC_VER    	0x040200
 
 /* Time in jiffies before concluding the transmitter is hung. */
@@ -8008,38 +8008,6 @@ static int bnx2x_set_settings(struct net_device
*dev, struct ethtool_cmd *cmd)
 	   cmd->duplex, cmd->port, cmd->phy_address, cmd->transceiver,
 	   cmd->autoneg, cmd->maxtxpkt, cmd->maxrxpkt);
 
-	switch (cmd->port) {
-	case PORT_TP:
-		if (!(bp->supported & SUPPORTED_TP)) {
-			DP(NETIF_MSG_LINK, "TP not supported\n");
-			return -EINVAL;
-		}
-
-		if (bp->phy_flags & PHY_XGXS_FLAG) {
-			bnx2x_link_reset(bp);
-			bnx2x_link_settings_supported(bp, SWITCH_CFG_1G);
-			bnx2x_phy_deassert(bp);
-		}
-		break;
-
-	case PORT_FIBRE:
-		if (!(bp->supported & SUPPORTED_FIBRE)) {
-			DP(NETIF_MSG_LINK, "FIBRE not supported\n");
-			return -EINVAL;
-		}
-
-		if (!(bp->phy_flags & PHY_XGXS_FLAG)) {
-			bnx2x_link_reset(bp);
-			bnx2x_link_settings_supported(bp, SWITCH_CFG_10G);
-			bnx2x_phy_deassert(bp);
-		}
-		break;
-
-	default:
-		DP(NETIF_MSG_LINK, "Unknown port type\n");
-		return -EINVAL;
-	}
-
 	if (cmd->autoneg == AUTONEG_ENABLE) {
 		if (!(bp->supported & SUPPORTED_Autoneg)) {
 			DP(NETIF_MSG_LINK, "Aotoneg not supported\n");
-- 
1.5.3.2





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

* Re: [re-resend] [PATCH 2.6.25] BNX2X: prevent ethtool setting of port type
  2008-03-18  9:36 [re-resend] [PATCH 2.6.25] BNX2X: prevent ethtool setting of port type Eliezer Tamir
@ 2008-03-20 22:56 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2008-03-20 22:56 UTC (permalink / raw)
  To: eliezert; +Cc: jeff, netdev

From: "Eliezer Tamir" <eliezert@broadcom.com>
Date: Tue, 18 Mar 2008 11:36:37 +0200

> BNX2X: prevent ethtool setting of port type
> 
> On 10GBaseT boards setting the type to TP will cause the driver to try
> to configure 1GBaseT.
> Since there are currently no boards that support setting of the port
> type, disable this for now.
> 
> Signed-off-by: Eliezer Tamir <eliezert@broadcom.com>

Your email client is still wrapping long lines, so the patch
is corrupt (again), please fix this.

> @@ -8008,38 +8008,6 @@ static int bnx2x_set_settings(struct net_device
> *dev, struct ethtool_cmd *cmd)
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

That's the wrapped line.

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

end of thread, other threads:[~2008-03-20 22:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-18  9:36 [re-resend] [PATCH 2.6.25] BNX2X: prevent ethtool setting of port type Eliezer Tamir
2008-03-20 22:56 ` 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).