Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2057077pxb; Thu, 11 Feb 2021 03:17:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJw9Eh+CqR0PuQlOoHc3lVR9v9mqwOdRAE8ffB5YEg87uDP/x34TRtKE6Z+IV0I4IXdRb8Wd X-Received: by 2002:a17:907:7785:: with SMTP id ky5mr8162369ejc.176.1613042266960; Thu, 11 Feb 2021 03:17:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613042266; cv=none; d=google.com; s=arc-20160816; b=DQ+YpStqkGLrWE2jYvm+xM/k7DurR6H4h5VbVAcEnN2wiD0/PwentmPKFsF7RHlI9b ZvWts4VE/HcimlLazHyg8zP2BDw7DPw6nFl7bxRlrUUH+btPznEWHa64u4aRv33TWLkZ HV9x60H6Dfuv/AQ/vojhskhxJbw78zAWL4uJIDN5PERqMgsuL2FtU+xgguM3+aTITOc1 jBmjZpFRejb4Y0oycQ8/rvAXOAiTiOsV6odE768NXBqZnv0YJd7ZJHDxCIMqC1OKFq9r r/lfOzndVI5ournphvLLTT+hpYJXjsXHUDPu8eOFKZqRoWi7nKwVCAI7ysTVJJL+y/ER dXBg== 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=gtZSfowQ3+4YeZMEOygqjJdJzFITZoTTA/epuuGAp/w=; b=B5z63KO7EPThbi3L6rhiJsPVMdLIYetQeKsM7/LCBjsuzaUMJppphHOeFZfQJ8JqT3 ia8ya/K8I3P//qQAGXAa+BwJl+LDrQ1rAb5WHjIKIJrEatHZEtnqJ+jvGwCNljTLGMV/ 9UGQAGzOkaUmsP+8r7oZE6/D0aU0zU55wE53FLe+EthfgMjbwSXyeuNoY2QkGcs3EKgx 8Uthrns2KVhvAA5EPAftno0ub8aa4Tctd6NB4U1gsP7pUdIETd+/2vBlrYjMuG8F2D7F N11K5Z3Og6okR65pCS91j3evod8p0iXy/zhiCaZQCTjOJ4B1ZJjNa3RaCIiW+5OEv557 KBLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=W6mhPBkX; 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 c8si3502743ejk.354.2021.02.11.03.17.23; Thu, 11 Feb 2021 03:17:46 -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=W6mhPBkX; 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 S230395AbhBKLQa (ORCPT + 99 others); Thu, 11 Feb 2021 06:16:30 -0500 Received: from mx0b-0016f401.pphosted.com ([67.231.156.173]:5092 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229882AbhBKKyr (ORCPT ); Thu, 11 Feb 2021 05:54:47 -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 11BAp92q017018; Thu, 11 Feb 2021 02:53:53 -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=gtZSfowQ3+4YeZMEOygqjJdJzFITZoTTA/epuuGAp/w=; b=W6mhPBkXM7xTGaUYH8DWDjdJh6ZfNLSn3cXoFFpIV0Ijyav4wyJJFn/t3dtVZh4Uil5t MA+28BBK5Z+aP14WAoXZ4D4LhAS5v+2mpVMll7FhEHLP/wAJDzvIdg8RcQJSOHU8CpFv JP1uAg2Xvx1xAYnF/PFJiGDn85b6v4UV1c+DEuhTGlPaGYk62aoauJO3CiLnBAZB0PeH vXkP4jqQ7MD2pKRofk3Nxs1LGQ7tFmBiSfAXuqYbGoGbmBPzsSI1EHug8ZRvJCy4hoJw nM+mSugRCByZ5OitORgbWLHzSVKSheWtA7alLbvw+wKdok0rsxA7xsNGVWooVnDEMhkK Ig== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com with ESMTP id 36hugqefh9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 11 Feb 2021 02:53:52 -0800 Received: from SC-EXCH04.marvell.com (10.93.176.84) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 11 Feb 2021 02:53:50 -0800 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 11 Feb 2021 02:53:50 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 11 Feb 2021 02:53:50 -0800 Received: from stefan-pc.marvell.com (stefan-pc.marvell.com [10.5.25.21]) by maili.marvell.com (Postfix) with ESMTP id 5EFF73F703F; Thu, 11 Feb 2021 02:53:46 -0800 (PST) From: To: CC: , , , , , , , , , , , , , , , , Subject: [PATCH v13 net-next 14/15] net: mvpp2: set 802.3x GoP Flow Control mode Date: Thu, 11 Feb 2021 12:49:01 +0200 Message-ID: <1613040542-16500-15-git-send-email-stefanc@marvell.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1613040542-16500-1-git-send-email-stefanc@marvell.com> References: <1613040542-16500-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-11_05:2021-02-10,2021-02-11 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 Acked-by: Marcin Wojtas --- 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 e646151..883d742 100644 --- a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c +++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c @@ -6276,7 +6276,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