Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

be2net: Check for POST state in suspend-resume sequence

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 <sarveshwar.bandi@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Sarveshwar Bandi and committed by
David S. Miller
dd5746bf 41a00f79

+4
+4
drivers/net/ethernet/emulex/benet/be_main.c
··· 4373 4373 pci_set_power_state(pdev, PCI_D0); 4374 4374 pci_restore_state(pdev); 4375 4375 4376 + status = be_fw_wait_ready(adapter); 4377 + if (status) 4378 + return status; 4379 + 4376 4380 /* tell fw we're ready to fire cmds */ 4377 4381 status = be_cmd_fw_init(adapter); 4378 4382 if (status)