be2net: issue function reset cmd in resume path
authorKalesh AP <kalesh.purayil@emulex.com>
Tue, 20 Jan 2015 08:51:47 +0000 (03:51 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Jan 2015 01:22:42 +0000 (17:22 -0800)
The Lancer FW is picky about requiring a function reset FW cmd as a part
of the initialization sequence.

Signed-off-by: Kalesh AP <kalesh.purayil@emulex.com>
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_main.c

index f5ac35c..0b0482b 100644 (file)
@@ -5071,6 +5071,10 @@ static int be_resume(struct pci_dev *pdev)
        if (status)
                return status;
 
+       status = be_cmd_reset_function(adapter);
+       if (status)
+               return status;
+
        be_intr_set(adapter, true);
        /* tell fw we're ready to fire cmds */
        status = be_cmd_fw_init(adapter);