提交 b9ab82c7 编写于 作者: S Sathya Perla 提交者: David S. Miller

be2net: clear intr bit in be_probe()

It may be set in the card while the driver is probed by kdump kernel after a
crash.
Signed-off-by: NSathya Perla <sathya.perla@emulex.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 482c9e79
...@@ -3417,6 +3417,12 @@ static int __devinit be_probe(struct pci_dev *pdev, ...@@ -3417,6 +3417,12 @@ static int __devinit be_probe(struct pci_dev *pdev,
if (status) if (status)
goto stats_clean; 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); be_msix_enable(adapter);
INIT_DELAYED_WORK(&adapter->work, be_worker); INIT_DELAYED_WORK(&adapter->work, be_worker);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册