* [PATCH net-next-2.6 3/3] be2net: clear intr bit in be_probe()
@ 2011-06-30 9:33 Sathya Perla
0 siblings, 0 replies; only message in thread
From: Sathya Perla @ 2011-06-30 9:33 UTC (permalink / raw)
To: netdev
It may be set in the card while the driver is probed by kdump kernel after a
crash.
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
---
drivers/net/benet/be_main.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c
index 5b319d7..375924f 100644
--- a/drivers/net/benet/be_main.c
+++ b/drivers/net/benet/be_main.c
@@ -3417,6 +3417,12 @@ static int __devinit be_probe(struct pci_dev *pdev,
if (status)
goto stats_clean;
+ /* The INTR bit may be set in the card when probed by a kdump kernel
+ * after a crash.
+ */
+ if (!lancer_chip(adapter))
+ be_intr_set(adapter, false);
+
be_msix_enable(adapter);
INIT_DELAYED_WORK(&adapter->work, be_worker);
--
1.7.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-06-30 9:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-30 9:33 [PATCH net-next-2.6 3/3] be2net: clear intr bit in be_probe() Sathya Perla
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox