Skip to content

Commit

Permalink
be2net: clear intr bit in be_probe()
Browse files Browse the repository at this point in the history
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Sathya Perla authored and David S. Miller committed Jul 1, 2011
1 parent 482c9e7 commit b9ab82c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/net/benet/be_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b9ab82c

Please sign in to comment.