Skip to content

Commit

Permalink
be2net: Check for POST state in suspend-resume sequence
Browse files Browse the repository at this point in the history
In suspend-resume sequence, the OS could attempt to initialize the controller
before it is ready, check for POST state before going ahead.

Signed-off-by: Sarveshwar Bandi <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Sarveshwar Bandi authored and davem330 committed Aug 26, 2013
1 parent 41a00f7 commit dd5746b
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 @@ -4373,6 +4373,10 @@ static int be_resume(struct pci_dev *pdev)
pci_set_power_state(pdev, PCI_D0);
pci_restore_state(pdev);

status = be_fw_wait_ready(adapter);
if (status)
return status;

/* tell fw we're ready to fire cmds */
status = be_cmd_fw_init(adapter);
if (status)
Expand Down

0 comments on commit dd5746b

Please sign in to comment.