* [PATCH] igb: Fix panic with NICs with 1000BASE-SX PHY
@ 2008-02-19 18:24 Auke Kok
2008-02-20 16:52 ` Jeff Garzik
0 siblings, 1 reply; 2+ messages in thread
From: Auke Kok @ 2008-02-19 18:24 UTC (permalink / raw)
To: jeff; +Cc: netdev, e1000-devel, bill.hayes, andy
From: Bill Hayes <bill.hayes@hp.com>
This patch eliminates a kernel panic with the igb driver in 2.6.25-rc2 when
running on a Intel 82575 Ethernet controller with a 1000BASE-SX PHY. The
panic does not happen with the 1000BASE-T PHY, only with a SX connection.
Signed-off-by: Bill Hayes <bill.hayes@hp.com>
Signed-off-by: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
---
drivers/net/igb/igb_main.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c
index 3480cc7..6a1f230 100644
--- a/drivers/net/igb/igb_main.c
+++ b/drivers/net/igb/igb_main.c
@@ -816,7 +816,8 @@ void igb_reset(struct igb_adapter *adapter)
wr32(E1000_VET, ETHERNET_IEEE_VLAN_TYPE);
igb_reset_adaptive(&adapter->hw);
- adapter->hw.phy.ops.get_phy_info(&adapter->hw);
+ if (adapter->hw.phy.ops.get_phy_info)
+ adapter->hw.phy.ops.get_phy_info(&adapter->hw);
}
/**
@@ -2052,7 +2053,8 @@ static void igb_set_multi(struct net_device *netdev)
static void igb_update_phy_info(unsigned long data)
{
struct igb_adapter *adapter = (struct igb_adapter *) data;
- adapter->hw.phy.ops.get_phy_info(&adapter->hw);
+ if (adapter->hw.phy.ops.get_phy_info)
+ adapter->hw.phy.ops.get_phy_info(&adapter->hw);
}
/**
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] igb: Fix panic with NICs with 1000BASE-SX PHY
2008-02-19 18:24 [PATCH] igb: Fix panic with NICs with 1000BASE-SX PHY Auke Kok
@ 2008-02-20 16:52 ` Jeff Garzik
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2008-02-20 16:52 UTC (permalink / raw)
To: Auke Kok; +Cc: e1000-devel, netdev, bill.hayes, andy
Auke Kok wrote:
> From: Bill Hayes <bill.hayes@hp.com>
>
> This patch eliminates a kernel panic with the igb driver in 2.6.25-rc2 when
> running on a Intel 82575 Ethernet controller with a 1000BASE-SX PHY. The
> panic does not happen with the 1000BASE-T PHY, only with a SX connection.
>
> Signed-off-by: Bill Hayes <bill.hayes@hp.com>
> Signed-off-by: Andy Gospodarek <andy@greyhouse.net>
> Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
applied
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-02-20 16:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-19 18:24 [PATCH] igb: Fix panic with NICs with 1000BASE-SX PHY Auke Kok
2008-02-20 16:52 ` Jeff Garzik
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).