Patchwork [net-next-2.6,4/6] be2net: fix to allow port beacon when device is closed

login
register
mail settings
Submitter Ajit Khaparde
Date Nov. 30, 2009, 3:56 a.m.
Message ID <20091130035646.GA15530@serverengines.com>
Download mbox | patch
Permalink /patch/39778/
State Accepted
Delegated to: David Miller
Headers show

Comments

Ajit Khaparde - Nov. 30, 2009, 3:56 a.m.
port identification/beaconing is failing if device open has not been done.
Fixing it.

Signed-off-by: Ajit Khaparde <ajitk@serverengines.com>
---
 drivers/net/benet/be_ethtool.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
David Miller - Dec. 2, 2009, 9:11 a.m.
From: Ajit Khaparde <ajitk@serverengines.com>
Date: Mon, 30 Nov 2009 09:26:56 +0530

> port identification/beaconing is failing if device open has not been done.
> Fixing it.
> 
> Signed-off-by: Ajit Khaparde <ajitk@serverengines.com>

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

Patch

diff --git a/drivers/net/benet/be_ethtool.c b/drivers/net/benet/be_ethtool.c
index e8f9283..9eabed4 100644
--- a/drivers/net/benet/be_ethtool.c
+++ b/drivers/net/benet/be_ethtool.c
@@ -380,9 +380,6 @@  be_phys_id(struct net_device *netdev, u32 data)
 	int status;
 	u32 cur;
 
-	if (!netif_running(netdev))
-		return 0;
-
 	be_cmd_get_beacon_state(adapter, adapter->port_num, &cur);
 
 	if (cur == BEACON_STATE_ENABLED)