Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp322586pxb; Tue, 9 Feb 2021 00:57:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJwOujfELdURoXm4FiOD1k8cDDG6lgyWBmtjeW12hwNvfNgmxbUwuPyMWI/Msm2edUrq4rR/ X-Received: by 2002:aa7:c889:: with SMTP id p9mr11088917eds.224.1612861061865; Tue, 09 Feb 2021 00:57:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612861061; cv=none; d=google.com; s=arc-20160816; b=guz4wahQbzyj0uZDdd/L3wyBVAkQ4QblA3a2gxLsnN63n7PvFOAQlZyFXBJcmy553C YHyls4a6JHvbw5GzHsg3cIofgRXIbo6qdv1ktjWcwwpML4RO0PGCvWqDhXACHoFWA71P n9ErD0eb4HX3J1+GtNgaspTqQnik0nWTZCjE/L6AUrj9BroYLOyI9TSACmATkui89X6x HPar5xm3D4STQTAAnSAeoLm6XspOgKKKQwC+ECMlznc2Tcjo7XEss7jZ/Rz3sdESZIxt uZr64G9lqn5IjHuLEo6tanvQKcNaDJPjTCKZ+t1H1WL3H5ZCqnOH69/zKShu3stCTABd aIVg== 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=MYCcm5J3eEeJbbTwAdvtxJVwkGfd+hNW+tclJ3WXWHehg8Ng+eDajpG5ZR443u7OAr hRyKM7VmV8UZSu4BsPcWjLOKrGov8tFgpF2k6FS3655PdHsQ30WHiYpfJUIYmv9DKCX8 +lVt1I3TNp5pnuL1ckiaHR+7/ySadsHPGXF48cQMeEYwiirAtFxPmmyl5n17EtbbAXGB /GnhK4yk9XOzhKgJH4oQ1rjGHaRfS4p1tejODjHFH/CDWDb8NTuzcEk8zS8TCb3A/QWI M4cW3QiEJHZdTtkemi7scVY7fZwGblbhgYahAN8hNL9BNjrIf+j8e2xcPAdEot1ErBYQ Arfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=QT8UruL7; 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 d10si13583284edh.147.2021.02.09.00.57.17; Tue, 09 Feb 2021 00:57:41 -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=QT8UruL7; 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 S230201AbhBII4b (ORCPT + 99 others); Tue, 9 Feb 2021 03:56:31 -0500 Received: from mx0b-0016f401.pphosted.com ([67.231.156.173]:46222 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230131AbhBIIsE (ORCPT ); Tue, 9 Feb 2021 03:48:04 -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 1198jcrB027043; Tue, 9 Feb 2021 00:47:12 -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=QT8UruL7w7KKxaqGq48YhU2uNyhRurzbb37qJrXTTbP6aOPVucEPYzQtBHhx0yTXaByD qwNC4YVtErUTxEDj38fSP0nVyH6UL+fY8+YdNYFf6tTB9m/ksVYhuyMqYKT0CypFj0C9 CuOk/KgOLI8ZzfolPL6L0wcrHxGNIsg5g94K/BBXX9Vi1STrvPdZmPepjTPdzh2k0ULy kqkCZQ8GEtHqpg547p3OHXzIFNBDvc4oz/s3GLBykV0nsKelYDr1GMwXLsO3dbZy3DMc 5Th50cL8ZGZMMLoL/Fu8cKfy1BOQEdPM/HThgCwa0UOOVU8WHUx6T6QoqD3yuSIyeNWe Iw== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com with ESMTP id 36hugq7m8k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 09 Feb 2021 00:47:12 -0800 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 9 Feb 2021 00:47:10 -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; Tue, 9 Feb 2021 00:47:10 -0800 Received: from stefan-pc.marvell.com (stefan-pc.marvell.com [10.5.25.21]) by maili.marvell.com (Postfix) with ESMTP id 7A4583F703F; Tue, 9 Feb 2021 00:47:06 -0800 (PST) From: To: CC: , , , , , , , , , , , , , , , , Subject: [PATCH v11 net-next 14/15] net: mvpp2: set 802.3x GoP Flow Control mode Date: Tue, 9 Feb 2021 10:42:30 +0200 Message-ID: <1612860151-12275-15-git-send-email-stefanc@marvell.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1612860151-12275-1-git-send-email-stefanc@marvell.com> References: <1612860151-12275-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-09_02:2021-02-09,2021-02-09 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