Skip to content

Commit

Permalink
be2net: issue function reset cmd in resume path
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kalesh AP authored and David S. Miller committed Jan 25, 2015
1 parent e673244 commit 9a6d73d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/net/ethernet/emulex/benet/be_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9a6d73d

Please sign in to comment.