From: Dean Luick Date: Mon, 26 Oct 2015 14:28:29 +0000 (-0400) Subject: staging/rdma/hfi1: Extend the offline timeout X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=dc060245a234d7ab1228e25e584208bd9489594c;p=linux-beck.git staging/rdma/hfi1: Extend the offline timeout 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 Signed-off-by: Dean Luick Signed-off-by: Ira Weiny Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rdma/hfi1/chip.c b/drivers/staging/rdma/hfi1/chip.c index 71921cabe15a..1747ab6410a9 100644 --- a/drivers/staging/rdma/hfi1/chip.c +++ b/drivers/staging/rdma/hfi1/chip.c @@ -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; }