diff options
-rw-r--r-- | drivers/net/qlge/qlge_main.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/net/qlge/qlge_main.c b/drivers/net/qlge/qlge_main.c index 5be3ae2f5a16..87ec72064158 100644 --- a/drivers/net/qlge/qlge_main.c +++ b/drivers/net/qlge/qlge_main.c | |||
@@ -4717,6 +4717,12 @@ static pci_ers_result_t qlge_io_slot_reset(struct pci_dev *pdev) | |||
4717 | return PCI_ERS_RESULT_DISCONNECT; | 4717 | return PCI_ERS_RESULT_DISCONNECT; |
4718 | } | 4718 | } |
4719 | pci_set_master(pdev); | 4719 | pci_set_master(pdev); |
4720 | |||
4721 | if (ql_adapter_reset(qdev)) { | ||
4722 | QPRINTK(qdev, DRV, ERR, "reset FAILED!\n"); | ||
4723 | return PCI_ERS_RESULT_DISCONNECT; | ||
4724 | } | ||
4725 | |||
4720 | return PCI_ERS_RESULT_RECOVERED; | 4726 | return PCI_ERS_RESULT_RECOVERED; |
4721 | } | 4727 | } |
4722 | 4728 | ||
@@ -4726,8 +4732,6 @@ static void qlge_io_resume(struct pci_dev *pdev) | |||
4726 | struct ql_adapter *qdev = netdev_priv(ndev); | 4732 | struct ql_adapter *qdev = netdev_priv(ndev); |
4727 | int err = 0; | 4733 | int err = 0; |
4728 | 4734 | ||
4729 | if (ql_adapter_reset(qdev)) | ||
4730 | QPRINTK(qdev, DRV, ERR, "reset FAILED!\n"); | ||
4731 | if (netif_running(ndev)) { | 4735 | if (netif_running(ndev)) { |
4732 | err = qlge_open(ndev); | 4736 | err = qlge_open(ndev); |
4733 | if (err) { | 4737 | if (err) { |