Commit d4360d6f authored by Ajit Khaparde's avatar Ajit Khaparde Committed by David S. Miller

be2net: Disabling and enabling interrupts in suspend and resume

Interrupts need to be enabled in be_resume, when adapter boots back up from D3cold.

disabling interrupts in be_suspend() just to be symmetric to be_resume().
Signed-off-by: default avatarRavikumar Nelavelli <ravikumar.nelavelli@emulex.com>
Signed-off-by: default avatarAjit Khaparde <ajit.khaparde@emulex.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4d0820cf
...@@ -4599,6 +4599,7 @@ static int be_suspend(struct pci_dev *pdev, pm_message_t state) ...@@ -4599,6 +4599,7 @@ static int be_suspend(struct pci_dev *pdev, pm_message_t state)
if (adapter->wol) if (adapter->wol)
be_setup_wol(adapter, true); be_setup_wol(adapter, true);
be_intr_set(adapter, false);
cancel_delayed_work_sync(&adapter->func_recovery_work); cancel_delayed_work_sync(&adapter->func_recovery_work);
netif_device_detach(netdev); netif_device_detach(netdev);
...@@ -4634,6 +4635,7 @@ static int be_resume(struct pci_dev *pdev) ...@@ -4634,6 +4635,7 @@ static int be_resume(struct pci_dev *pdev)
if (status) if (status)
return status; return status;
be_intr_set(adapter, true);
/* tell fw we're ready to fire cmds */ /* tell fw we're ready to fire cmds */
status = be_cmd_fw_init(adapter); status = be_cmd_fw_init(adapter);
if (status) if (status)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment