Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4811075yba; Tue, 30 Apr 2019 04:54:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqybLiOBtzVIsrnSA0IeEMt134vhwwEcwzI3EWzuPfpb8ouqIzZDRcuFo5fzP9cEuAbXNR6j X-Received: by 2002:a17:902:6946:: with SMTP id k6mr13561873plt.81.1556625276505; Tue, 30 Apr 2019 04:54:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556625276; cv=none; d=google.com; s=arc-20160816; b=HZoh0HYyts3dVg4HgmZwqcpHba0CLPMH3FM3cR+AEgwL9dSCR2GnPxkGEs6+hZjhpE 9LH6LFIeTredWDQGsOEd8Li+C5tTqWb9iKN2WDBrlrdLs1fsj63grqJmAW7nKBySUKut YgNTDOPgrAkPLmsmpxVm5pxmXvYb/99vQOFnYXhQ8jgToE2D7y0i0/QhNEpKOjuk8xcs yzf70f1e2O9x1ONYNG53T8JfKzaIUkDsm9+37XC5DieZAonXYrmRryoLtFy0shg2PBzJ nZSlnEx6tnCc0d3QOgz36ZBcof5bu4ZKtFxHLk3TgohPtGKXZR8qNJihM3yw+pm6lU0+ A8OQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=E7TlXS4+cRhDWQf9RcedHMtirDH5HfrKJ020e/s17sk=; b=ix61TIx5A10JOdRye9IFuJGgR/phEFbHoL2AAeLhXgMKCOMmgVTuDLHe30bsmzISZT GEeA/RcY/aXoQkbhwjaHq3+5zhbBEB9p/Gd3cyWKB0Pc/PaLNR37PtIpYrMwWP8oa7/j 0aJjhrxe8oUBglmwVuq9uHRpsTdVVNMBESCiwe4YRq6QO5lqrb309c861cBpFmZaEaWn apwNxD/qWTy0rY8Jlv4Z92cePUQgvKyHBLhfReZSqeRkiekm0Y50GISi9JjjgVr4+g4F CX0Oysb0XlCxrNPsn7bfryJZJgkXXlwN860Wb7gdCbzdpjywjbE292tRf0W+OzPJqheT 9pVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=m20tBmGc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o33si6238640plb.230.2019.04.30.04.54.21; Tue, 30 Apr 2019 04:54:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=m20tBmGc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731397AbfD3Lva (ORCPT + 99 others); Tue, 30 Apr 2019 07:51:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:39182 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731389AbfD3LvZ (ORCPT ); Tue, 30 Apr 2019 07:51:25 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 821382054F; Tue, 30 Apr 2019 11:51:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556625085; bh=A4XMC9p/3HF6St1IjCxVuL4dvn3duw+BucvGvAO14To=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m20tBmGciFAYxVVd4KXbm2Ug+sKiBTpS0F4+M0Sk+0xf59RtFsuPQwRcyhEAjgmmP /gfXBaaAPXW+NeSK03cF7q5M6anJltxaasVVIXaAfbqPE3L1ZO+fixiA6aF9kH0mJY WWi2jxTxZjDEZUifzwLhAfXjLcHCUUrgDHrJV2Jw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ido Schimmel , Jiri Pirko , "David S. Miller" Subject: [PATCH 5.0 84/89] mlxsw: pci: Reincrease PCI reset timeout Date: Tue, 30 Apr 2019 13:39:15 +0200 Message-Id: <20190430113613.736927302@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190430113609.741196396@linuxfoundation.org> References: <20190430113609.741196396@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ido Schimmel [ Upstream commit 1ab3030193d25878b3b1409060e1e0a879800c95 ] During driver initialization the driver sends a reset to the device and waits for the firmware to signal that it is ready to continue. Commit d2f372ba0914 ("mlxsw: pci: Increase PCI SW reset timeout") increased the timeout to 13 seconds due to longer PHY calibration in Spectrum-2 compared to Spectrum-1. Recently it became apparent that this timeout is too short and therefore this patch increases it again to a safer limit that will be reduced in the future. Fixes: c3ab435466d5 ("mlxsw: spectrum: Extend to support Spectrum-2 ASIC") Fixes: d2f372ba0914 ("mlxsw: pci: Increase PCI SW reset timeout") Signed-off-by: Ido Schimmel Acked-by: Jiri Pirko Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/mellanox/mlxsw/pci_hw.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/ethernet/mellanox/mlxsw/pci_hw.h +++ b/drivers/net/ethernet/mellanox/mlxsw/pci_hw.h @@ -27,7 +27,7 @@ #define MLXSW_PCI_SW_RESET 0xF0010 #define MLXSW_PCI_SW_RESET_RST_BIT BIT(0) -#define MLXSW_PCI_SW_RESET_TIMEOUT_MSECS 13000 +#define MLXSW_PCI_SW_RESET_TIMEOUT_MSECS 20000 #define MLXSW_PCI_SW_RESET_WAIT_MSECS 100 #define MLXSW_PCI_FW_READY 0xA1844 #define MLXSW_PCI_FW_READY_MASK 0xFFFF