Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3707454ybi; Fri, 19 Jul 2019 07:41:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqyvlctqnOeTPTE5ZZoY1DsgotwOOMLbCslCIrS5rr0c6VQo3cxrZWCy/Jutxy9Kx2otyO5o X-Received: by 2002:a17:902:7281:: with SMTP id d1mr1879114pll.329.1563547307446; Fri, 19 Jul 2019 07:41:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563547307; cv=none; d=google.com; s=arc-20160816; b=s+02+hbpriYBWPZvWxMoWEVFy1nL/jPsMXvg3Qs+W4h2YitM9iVtjaOHsHE/Q2AXuj isg3Ww+USLm0s7oFIOjgyPnrmnVNd+fuKGa4zgoXTpRwEM1lB3wjuS1APtlBTtR2+DHz XqdmSP5zjccKx0Cf0ZuelGwW5tY0U2BOwY8pNbacLPIJLX0b5AB3fYr/9iaktbzMhxba fugETYOJ2fHB4b1DAuWC6iLsVDWVaifccnW+MJmqH9mdZN7XhPw3MOmE8xvVco3drTDC FVpi9Mibf+jBVjZcD/OKb9XzQTcl2/CtH3ER2sKMuzX32V+Vs9EzJ41DP+aai0/fXugL 2OQw== 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 :message-id:date:subject:cc:to:from; bh=eNEMLu5wH9VaLw2xLYjWN5Xv8Z2MqChGlyUdrgPlL1I=; b=oIuGHj0kiiAnFiZgHuUD14z/U4pisXnKuVCVpdNBL4NkS4VoO5Ahzuym2Ozs34TlUd 0kfLsbmYbhN8H15bQlSmuLr0cyWA3q6ubcpJJ3YFl9P2uNIIH6Rti37bW/l+Gq3uPhka YTwgLOywXA7MnxSGggGMyQyU2nqT2AdW2w8FRo7BF0vG5FDXH9KXn2D3lOZa8L9idtu0 GnX9r2eW95mLIhazeEqnNmMjG2yiYc7O49CBEfgeRJG84/46S7HiwzYJ1w6m8QdLDbLU 09Pq/gmcLb4P58cA2v7ee3b5cZ8lIcdirSndviWsQBcCm3fKv5Q0Mabg4XEsP7Cpd2HL f0Kw== ARC-Authentication-Results: i=1; mx.google.com; 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 z14si2420698plo.104.2019.07.19.07.41.31; Fri, 19 Jul 2019 07:41:47 -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; 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 S1729883AbfGSOin (ORCPT + 99 others); Fri, 19 Jul 2019 10:38:43 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:58045 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727717AbfGSOim (ORCPT ); Fri, 19 Jul 2019 10:38:42 -0400 Received: from mc-bl-xps13.lan (lfbn-1-17395-211.w86-250.abo.wanadoo.fr [86.250.200.211]) (Authenticated sender: maxime.chevallier@bootlin.com) by relay12.mail.gandi.net (Postfix) with ESMTPSA id EFF5D200007; Fri, 19 Jul 2019 14:38:38 +0000 (UTC) From: Maxime Chevallier To: davem@davemloft.net Cc: Maxime Chevallier , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Antoine Tenart , thomas.petazzoni@bootlin.com, gregory.clement@bootlin.com, nadavh@marvell.com, stefanc@marvell.com, mw@semihalf.com, miquel.raynal@bootlin.com Subject: [PATCH net] net: mvpp2: Don't check for 3 consecutive Idle frames for 10G links Date: Fri, 19 Jul 2019 16:38:48 +0200 Message-Id: <20190719143848.3826-1-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PPv2's XLGMAC can wait for 3 idle frames before triggering a link up event. This can cause the link to be stuck low when there's traffic on the interface, so disable this feature. Fixes: 4bb043262878 ("net: mvpp2: phylink support") Signed-off-by: Maxime Chevallier --- drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c index c51f1d5b550b..b6591ea0c6d6 100644 --- a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c +++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c @@ -4739,9 +4739,9 @@ static void mvpp2_xlg_config(struct mvpp2_port *port, unsigned int mode, else ctrl0 &= ~MVPP22_XLG_CTRL0_RX_FLOW_CTRL_EN; - ctrl4 &= ~MVPP22_XLG_CTRL4_MACMODSELECT_GMAC; - ctrl4 |= MVPP22_XLG_CTRL4_FWD_FC | MVPP22_XLG_CTRL4_FWD_PFC | - MVPP22_XLG_CTRL4_EN_IDLE_CHECK; + ctrl4 &= ~(MVPP22_XLG_CTRL4_MACMODSELECT_GMAC | + MVPP22_XLG_CTRL4_EN_IDLE_CHECK); + ctrl4 |= MVPP22_XLG_CTRL4_FWD_FC | MVPP22_XLG_CTRL4_FWD_PFC; if (old_ctrl0 != ctrl0) writel(ctrl0, port->base + MVPP22_XLG_CTRL0_REG); -- 2.20.1