All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net] be2net: Check for POST state in suspend-resume sequence
@ 2013-08-23  9:29 sarveshwar.bandi
  2013-08-27 17:54 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: sarveshwar.bandi @ 2013-08-23  9:29 UTC (permalink / raw)
  To: davem; +Cc: netdev, Sarveshwar Bandi

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>
---
 drivers/net/ethernet/emulex/benet/be_main.c |    4 ++++
 1 file changed, 4 insertions(+)

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)
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH net] be2net: Check for POST state in suspend-resume sequence
  2013-08-23  9:29 [PATCH net] be2net: Check for POST state in suspend-resume sequence sarveshwar.bandi
@ 2013-08-27 17:54 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2013-08-27 17:54 UTC (permalink / raw)
  To: sarveshwar.bandi; +Cc: netdev

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-08-27 17:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-23  9:29 [PATCH net] be2net: Check for POST state in suspend-resume sequence sarveshwar.bandi
2013-08-27 17:54 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.