From: Yuval Mintz Date: Wed, 9 Mar 2016 07:16:26 +0000 (+0200) Subject: qed: Enlrage the drain timeout X-Git-Tag: v4.1.12-92~115^2~65 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=005361f5ebb756f989bfe4cd3cb0f00975ae11fb;p=users%2Fjedix%2Flinux-maple.git qed: Enlrage the drain timeout In the scenario where slowpath configuration isn't passing due to various pause configurations affecting the chip, the theoretical time required in worst-case-scenario to empty hw fifos sufficiently to guarantee that slowpath configuration would flow is currently insufficient. This increases such a drain request to the theoretical maximum. Signed-off-by: Yuval Mintz Signed-off-by: David S. Miller Orabug: 23732603 Signed-off-by: Manjunath Govindashetty --- diff --git a/drivers/net/ethernet/qlogic/qed/qed_mcp.c b/drivers/net/ethernet/qlogic/qed/qed_mcp.c index 39c831d6ead3..b89c9a8e1655 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_mcp.c +++ b/drivers/net/ethernet/qlogic/qed/qed_mcp.c @@ -899,11 +899,11 @@ int qed_mcp_drain(struct qed_hwfn *p_hwfn, int rc; rc = qed_mcp_cmd(p_hwfn, p_ptt, - DRV_MSG_CODE_NIG_DRAIN, 100, + DRV_MSG_CODE_NIG_DRAIN, 1000, &resp, ¶m); /* Wait for the drain to complete before returning */ - msleep(120); + msleep(1020); return rc; }