Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3477569pxb; Sun, 7 Feb 2021 10:47:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJxWg4FHH+G4TQxI/lhX+UdR7S3oET2NNF8iZBq8LZ+xmRk5Hr+uwq38f14WICnbchTSVKTv X-Received: by 2002:a17:906:4348:: with SMTP id z8mr13715784ejm.371.1612723673357; Sun, 07 Feb 2021 10:47:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612723673; cv=none; d=google.com; s=arc-20160816; b=Yk9VYMM+eI0YP/x5Ylsyk0iTSlulRTup8YqtU6JE6vNZCfIotH+HQ2YrQF8+2rXfpE OD28TOLXldpWST9ailcNA4IdwmH7hg4+8L2J8udBR0DVAXT2g/ZFoQEypeHW3ti5J4if vO4MZrR/s9xa+SeJl6o0+SjRvjWFfwU6kUntZn4/9L0YJZ0aWb4SFOSSPfsC73sSMPYO fg+H9r2YYK/CUS/JyLgVHiyPv4I8FHsN+fKSdTAOqdjuJ15W1vGFCbRwW2QuU3KQDmX8 Nq2ARL/GO2wobwKbNTzwWpzk6XMh9bNAUne3CLY+FF8yPqK7dUmO5PkQXmzgfv2mf11R f6JA== 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=DvfD7O77b2ATuThWoUKzOIAnS3uUNeYNikGy/OGeLu8=; b=qIBUWIPgM7pje8Q/c8k+y1SbyAybRT5LLBx6z7mulblYA90VK+lC0MWJycZaNGa7KU XE08/us/ukMEfLhhaC6klFrf2VQMn/mwU2WAB389Qb3zUI16KQI5HAywDNvwaPdev8W1 MrhgvtjSSb56Asl3VH1MKvFJHKhznzcs9c8rLr7kt5FG38noJ4WKdj2M0bqz4mFXa3xQ fOJ5nYVV0tuEEQNvRK9pbNhEDy63G0is1trEQIzH4n7Nmb3SV8pl8Ywqh2Rt6170nrR9 HCfmtbIxUSH5U9M5HxUqjMUMUQy8HmMaDaYHG35rF5htdZBzKgdkfj0hadEA3KaIA1z8 qzoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=P5KgyljH; 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 t19si10283991edq.404.2021.02.07.10.47.30; Sun, 07 Feb 2021 10:47:53 -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=P5KgyljH; 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 S230159AbhBGSqP (ORCPT + 99 others); Sun, 7 Feb 2021 13:46:15 -0500 Received: from mx0a-0016f401.pphosted.com ([67.231.148.174]:56532 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229908AbhBGSny (ORCPT ); Sun, 7 Feb 2021 13:43:54 -0500 Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 117IelEj027442; Sun, 7 Feb 2021 10:42:51 -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=DvfD7O77b2ATuThWoUKzOIAnS3uUNeYNikGy/OGeLu8=; b=P5KgyljHtEpFrD+DRN/OXuzv2Fg5kLNssoZion9cRcUneWGK8tGNQFzZ7w4p7LuxlH+P u/3zvtEGwUm1YqnaLdJRSBEW0Rq18XvWqPT3yqVsJsAcKwvt+ZHdQyJ5s07EJBGN+xRt XImDUP2h9JBz2lpXWFBLgrskEr5Z9X/1hb4Dvpp+JJLmL4L927qx4fYaQbuKnCbyzwW+ ZRNlxx3WvR2C1ex2lipCjWrN2S+TKEL1Hw1rMr7JJGcYvZLPh68nBlbPol7Pk+GcWLnC pb423vHypwyiyTKrY8sf41dFd0EWTBKAwYneomx2LoaUO1KQKUVWTQk7efhElR2fax0Q BQ== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com with ESMTP id 36hsbramq2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sun, 07 Feb 2021 10:42:51 -0800 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 7 Feb 2021 10:42:49 -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 10:42:49 -0800 Received: from stefan-pc.marvell.com (stefan-pc.marvell.com [10.5.25.21]) by maili.marvell.com (Postfix) with ESMTP id 9DBEF3F7040; Sun, 7 Feb 2021 10:42:45 -0800 (PST) From: To: CC: , , , , , , , , , , , , , , , , Subject: [PATCH v9 net-next 14/15] net: mvpp2: set 802.3x GoP Flow Control mode Date: Sun, 7 Feb 2021 20:38:56 +0200 Message-ID: <1612723137-18045-15-git-send-email-stefanc@marvell.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1612723137-18045-1-git-send-email-stefanc@marvell.com> References: <1612723137-18045-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_10: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 a472125..4d0a398 100644 --- a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c +++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c @@ -6283,7 +6283,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