diff options
author | Ron Mercer <ron.mercer@qlogic.com> | 2010-02-03 02:24:11 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-03 23:06:02 -0500 |
commit | a112fd4ce3ed965dfb8dc6791622cb4f25ba3619 (patch) | |
tree | 583b44f4196fae6afdf375a185d6409dab4cff28 /drivers/net/qlge | |
parent | 4a0b9ca015bae64df7d97c9e0a1d33159b36e69f (diff) |
qlge: Move reset from eeh io_resume to slot_reset.
Issue asic reset and verify functionality before continuing to the
resume call. This allows proper error code to be returned in the case
the asic does not recover.
Signed-off-by: Ron Mercer <ron.mercer@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlge')
-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) { |