]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
bnxt_en: Call bnxt_ulp_stop()/bnxt_ulp_start() during suspend/resume.
authorPavan Chebbi <pavan.chebbi@broadcom.com>
Thu, 31 Oct 2019 05:07:51 +0000 (01:07 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Oct 2019 21:48:21 +0000 (14:48 -0700)
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>
drivers/net/ethernet/broadcom/bnxt/bnxt.c

index a8a2a6f79b6f8505c3d40406012c07752354c112..477b8d7d94d146a8d31c96689a2f6424f7bbe08c 100644 (file)
@@ -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);
@@ -11934,6 +11935,7 @@ static int bnxt_resume(struct device *device)
        }
 
 resume_exit:
+       bnxt_ulp_start(bp, rc);
        rtnl_unlock();
        return rc;
 }