[PATCH 48/52] sfc: Stop generating bogus events in tenxpress_check_hw()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ben Hutchings
Date: Monday, September 1, 2008 - 4:50 am

mdio_clause45_links_ok() correctly checks efx_phy_mode_disabled(), so
tenxpress_link_ok() doesn't need to.

From: Steve Hodgson <shodgson@solarflare.com>
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
---
 drivers/net/sfc/tenxpress.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/net/sfc/tenxpress.c b/drivers/net/sfc/tenxpress.c
index 2ad3d8d..d507c93 100644
--- a/drivers/net/sfc/tenxpress.c
+++ b/drivers/net/sfc/tenxpress.c
@@ -377,8 +377,7 @@ static int tenxpress_phy_check_hw(struct efx_nic *efx)
 	struct tenxpress_phy_data *phy_data = efx->phy_data;
 	bool link_ok;
 
-	link_ok = (phy_data->phy_mode == PHY_MODE_NORMAL &&
-		   tenxpress_link_ok(efx, true));
+	link_ok = tenxpress_link_ok(efx, true);
 
 	if (link_ok != efx->link_up)
 		falcon_xmac_sim_phy_event(efx);
-- 
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.

--
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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 00/52] sfc: Changes for 2.6.28, Ben Hutchings, (Mon Sep 1, 4:16 am)
[PATCH 07/52] sfc: Remove mistaken hardware workaround, Ben Hutchings, (Mon Sep 1, 4:46 am)
[PATCH 08/52] sfc: XMAC statistics fix-ups, Ben Hutchings, (Mon Sep 1, 4:46 am)
[PATCH 12/52] sfc: Self-test reporting cleanup, Ben Hutchings, (Mon Sep 1, 4:46 am)
[PATCH 13/52] sfc: Speed up loopback self-test, Ben Hutchings, (Mon Sep 1, 4:46 am)
[PATCH 19/52] sfc: Cleaned up struct tso_state fields, Ben Hutchings, (Mon Sep 1, 4:47 am)
[PATCH 23/52] sfc: Remove efx_channel::has_interrupt, Ben Hutchings, (Mon Sep 1, 4:47 am)
[PATCH 24/52] sfc: Cleanup RX queue information, Ben Hutchings, (Mon Sep 1, 4:47 am)
[PATCH 27/52] sfc: Remove efx_channel::evqnum field, Ben Hutchings, (Mon Sep 1, 4:48 am)
[PATCH 28/52] sfc: Cleanup RX event processing, Ben Hutchings, (Mon Sep 1, 4:48 am)
[PATCH 32/52] sfc: Enable TSO for 802.1q VLAN devices, Ben Hutchings, (Mon Sep 1, 4:48 am)
[PATCH 35/52] sfc: Remove some unreachable error paths, Ben Hutchings, (Mon Sep 1, 4:48 am)
[PATCH 36/52] sfc: Cleanup reset code, Ben Hutchings, (Mon Sep 1, 4:48 am)
[PATCH 38/52] sfc: Extend self-tests, Ben Hutchings, (Mon Sep 1, 4:49 am)
[PATCH 39/52] sfc: Remove the STATE_RESETTING flag, Ben Hutchings, (Mon Sep 1, 4:49 am)
[PATCH 40/52] sfc: Rework efx_set_multicast_hash(), Ben Hutchings, (Mon Sep 1, 4:49 am)
[PATCH 46/52] sfc: Make queue flushes more reliable, Ben Hutchings, (Mon Sep 1, 4:49 am)
[PATCH 48/52] sfc: Stop generating bogus events in tenxpre ..., Ben Hutchings, (Mon Sep 1, 4:50 am)