Skip to content

Commit

Permalink
bnxt_en: Call bnxt_ulp_stop()/bnxt_ulp_start() during suspend/resume.
Browse files Browse the repository at this point in the history
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: Pavan Chebbi <pavan.chebbi@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Pavan Chebbi authored and David S. Miller committed Oct 31, 2019
1 parent f3a6d20 commit 6a68749
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/ethernet/broadcom/bnxt/bnxt.c
Original file line number Diff line number Diff line change
Expand Up @@ -11901,6 +11901,7 @@ static int bnxt_suspend(struct device *device)
int rc = 0;

rtnl_lock();
bnxt_ulp_stop(bp);
if (netif_running(dev)) {
netif_device_detach(dev);
rc = bnxt_close(dev);
Expand Down Expand Up @@ -11934,6 +11935,7 @@ static int bnxt_resume(struct device *device)
}

resume_exit:
bnxt_ulp_start(bp, rc);
rtnl_unlock();
return rc;
}
Expand Down

0 comments on commit 6a68749

Please sign in to comment.