Message ID | 771abba1-2664-4807-9a45-56ca9ede3c74@CMEXHTCAS2.ad.emulex.com |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show |
From: <sarveshwar.bandi@emulex.com> Date: Fri, 23 Aug 2013 14:59:33 +0530 > From: Sarveshwar Bandi <sarveshwar.bandi@emulex.com> > > 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> Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/net/ethernet/emulex/benet/be_main.c b/drivers/net/ethernet/emulex/benet/be_main.c index 4559c35..3d91a5e 100644 --- a/drivers/net/ethernet/emulex/benet/be_main.c +++ b/drivers/net/ethernet/emulex/benet/be_main.c @@ -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)