Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3189272pxb; Sun, 7 Feb 2021 00:33:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJxiryI3s3Ah62w97+lrZYcK4+Le7xBNqE4u+IGf37mNk9qa3A9L3B5IT3BI50GuCWoFN46n X-Received: by 2002:a17:906:6d94:: with SMTP id h20mr12263346ejt.231.1612686805272; Sun, 07 Feb 2021 00:33:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612686805; cv=none; d=google.com; s=arc-20160816; b=y7Q4pSx+v18/grH6rkDnaKrJHxmAslYTi81IdsqlAxTFvmh9JJBdkZ+6NKe0MLXgYK s63Dp8YLuSpCMb8ANalSz5hcGLj7q2glXlO1OKPk5a7X0jz112IynvWAc4cCtqKN76eE SYTttpns1xhOQr5Ir69wrsIaN1XNeaFdocqGHYdk3CQP3PzZ5pJiQTM9Rg4Sx1qkfELP wjAnlaXI/7wJGsZtSZJUcDzmywUGSCNnNlwFM2z+uD5oSpBnPOnhmbolQcuD+OJkmCtL 1GhRXx7LBUU0i8/fOw0GJLK1sG6fUvfD7iNA2ReTjK991b5/9GxZGQcruV756D4Hi58t QdQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=9lzUz2BCH7tu12Q5O+UlThumhN5ntvDQXiyz9b0qc7o=; b=MQUKG82FKyLzXGq+1EMNtflqu0OfbVF0Yy50j3rnHqUNgyDKOekwO8996PsDi37CyN gp9PLHIgnVh6RnTQ+HDYwhJOoZhDMTX6hkoHj8Qp/ZddOjbakX7m/HNZrnXyNK554Su+ iouvn5U1fPy+WnDebghKpwjdpiTEObmaItylL02u9kCvsppDD9IM3jh88pu3chcjF6Ak yz1dbZKgBG3ot7/aaBWQyOz9EUPn+QJLskWN5hz0vetnS0mqXIrSkXQqUAlcmH3cBoJ3 mW+6ssPVEFK3CVj4/4YZRo+aADxTYxZ+cgNfaLDInsd4EgWheXwhJ7KHsWxboQY6hpsg nCTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=GrtmYwJN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s8si8569669edd.534.2021.02.07.00.33.01; Sun, 07 Feb 2021 00:33:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=GrtmYwJN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229979AbhBGIaa (ORCPT + 99 others); Sun, 7 Feb 2021 03:30:30 -0500 Received: from mx0b-0016f401.pphosted.com ([67.231.156.173]:39798 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229970AbhBGIXb (ORCPT ); Sun, 7 Feb 2021 03:23:31 -0500 Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 1178LTrh025726; Sun, 7 Feb 2021 00:22:36 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=pfpt0220; bh=9lzUz2BCH7tu12Q5O+UlThumhN5ntvDQXiyz9b0qc7o=; b=GrtmYwJNfu8s84HGBi/+nFjQEd7UxGxivwC+rDbTdQqM35fAj6s1v9p2ug1PQuUHH18p CiXGJwj4y2sCQOecu7NcrnZL+qOpwk6WAz8+MOuwHEgCV8m2cu3Xeso3IfgQidSN7qpH iUlpnYacpRhyQ2gzyUSiQq2lEDrC7CRZQew0/aDpmBYf+iIGwENgkawMJEAZ7cTU2mZv 9sxDGZxC07ZxoYY6LpgrGwfBKRfCOCe1qMaZk82djHaPykH7+GPVzviNM/0hoG83psSm webwxFM6vx3MAqtCF0V99z7ADLiDJizm5Y28dMJNjz9J47HuERzgs9gj+/Ws4j5QKA+M QA== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com with ESMTP id 36hugq1m3h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sun, 07 Feb 2021 00:22:36 -0800 Received: from SC-EXCH04.marvell.com (10.93.176.84) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 7 Feb 2021 00:22:34 -0800 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 7 Feb 2021 00:22:34 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sun, 7 Feb 2021 00:22:34 -0800 Received: from stefan-pc.marvell.com (stefan-pc.marvell.com [10.5.25.21]) by maili.marvell.com (Postfix) with ESMTP id 326523F7040; Sun, 7 Feb 2021 00:22:30 -0800 (PST) From: To: CC: , , , , , , , , , , , , , , , , Subject: [RESEND PATCH v8 net-next 14/15] net: mvpp2: set 802.3x GoP Flow Control mode Date: Sun, 7 Feb 2021 10:19:23 +0200 Message-ID: <1612685964-21890-15-git-send-email-stefanc@marvell.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1612685964-21890-1-git-send-email-stefanc@marvell.com> References: <1612685964-21890-1-git-send-email-stefanc@marvell.com> MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369,18.0.737 definitions=2021-02-07_03:2021-02-05,2021-02-07 signatures=0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stefan Chulski This patch fix GMAC TX flow control autoneg. Flow control autoneg wrongly were disabled with enabled TX flow control. Signed-off-by: Stefan Chulski --- drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c index 5a51697..5526214 100644 --- a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c +++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c @@ -6284,7 +6284,7 @@ static void mvpp2_gmac_config(struct mvpp2_port *port, unsigned int mode, old_ctrl4 = ctrl4 = readl(port->base + MVPP22_GMAC_CTRL_4_REG); ctrl0 &= ~MVPP2_GMAC_PORT_TYPE_MASK; - ctrl2 &= ~(MVPP2_GMAC_INBAND_AN_MASK | MVPP2_GMAC_PCS_ENABLE_MASK); + ctrl2 &= ~(MVPP2_GMAC_INBAND_AN_MASK | MVPP2_GMAC_PCS_ENABLE_MASK | MVPP2_GMAC_FLOW_CTRL_MASK); /* Configure port type */ if (phy_interface_mode_is_8023z(state->interface)) { -- 1.9.1