Commit 6a68749d authored by Pavan Chebbi's avatar Pavan Chebbi Committed by David S. Miller

bnxt_en: Call bnxt_ulp_stop()/bnxt_ulp_start() during suspend/resume.

Inform the RDMA driver to stop/start during suspend/resume.  The
RDMA driver needs to stop and start just like error recovery.
Signed-off-by: default avatarPavan Chebbi <pavan.chebbi@broadcom.com>
Signed-off-by: default avatarMichael Chan <michael.chan@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f3a6d206
...@@ -11901,6 +11901,7 @@ static int bnxt_suspend(struct device *device) ...@@ -11901,6 +11901,7 @@ static int bnxt_suspend(struct device *device)
int rc = 0; int rc = 0;
rtnl_lock(); rtnl_lock();
bnxt_ulp_stop(bp);
if (netif_running(dev)) { if (netif_running(dev)) {
netif_device_detach(dev); netif_device_detach(dev);
rc = bnxt_close(dev); rc = bnxt_close(dev);
...@@ -11934,6 +11935,7 @@ static int bnxt_resume(struct device *device) ...@@ -11934,6 +11935,7 @@ static int bnxt_resume(struct device *device)
} }
resume_exit: resume_exit:
bnxt_ulp_start(bp, rc);
rtnl_unlock(); rtnl_unlock();
return rc; return rc;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment