be2net: Disabling and enabling interrupts in suspend and resume
authorAjit Khaparde <ajit.khaparde@emulex.com>
Fri, 22 Nov 2013 18:51:09 +0000 (12:51 -0600)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 Nov 2013 23:11:02 +0000 (15:11 -0800)
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: Ravikumar Nelavelli <ravikumar.nelavelli@emulex.com>
Signed-off-by: Ajit Khaparde <ajit.khaparde@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_main.c

index abde97471636918a6b7e2381634cdc743678d24c..9b148cf047045063423242e7f53ac39f259e8408 100644 (file)
@@ -4599,6 +4599,7 @@ static int be_suspend(struct pci_dev *pdev, pm_message_t state)
        if (adapter->wol)
                be_setup_wol(adapter, true);
 
+       be_intr_set(adapter, false);
        cancel_delayed_work_sync(&adapter->func_recovery_work);
 
        netif_device_detach(netdev);
@@ -4634,6 +4635,7 @@ static int be_resume(struct pci_dev *pdev)
        if (status)
                return status;
 
+       be_intr_set(adapter, true);
        /* tell fw we're ready to fire cmds */
        status = be_cmd_fw_init(adapter);
        if (status)