]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging/rdma/hfi1: Extend the offline timeout
authorDean Luick <dean.luick@intel.com>
Mon, 26 Oct 2015 14:28:29 +0000 (10:28 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Oct 2015 08:16:54 +0000 (17:16 +0900)
The latest version of the 8051 firmware will wait longer
when bringing the link down.  Extend the driver's timeout
to go with that.

Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rdma/hfi1/chip.c

index 71921cabe15af6b6f9885ed11a0282539d310e11..1747ab6410a9bbbfad8a96542d2fba53400e6d17 100644 (file)
@@ -6203,7 +6203,7 @@ static int goto_offline(struct hfi1_pportdata *ppd, u8 rem_reason)
 
        if (do_wait) {
                /* it can take a while for the link to go down */
-               ret = wait_phy_linkstate(dd, PLS_OFFLINE, 5000);
+               ret = wait_phy_linkstate(dd, PLS_OFFLINE, 10000);
                if (ret < 0)
                        return ret;
        }