Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp2001562imc; Fri, 22 Feb 2019 15:39:53 -0800 (PST) X-Google-Smtp-Source: AHgI3IZod2Fl/NQ1MibpxYO2R2CX3DmJpVIJ8g77s2ctfApn1nZBxPs+uFk2qtju2UsUp8Tjhdxd X-Received: by 2002:a65:620a:: with SMTP id d10mr6168080pgv.75.1550878793275; Fri, 22 Feb 2019 15:39:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550878793; cv=none; d=google.com; s=arc-20160816; b=yyF5d89kDVmrQChrkYS2mkCr5qmqIbC8BOy2QUAUN43H5rWraDas1exs0loHBK3gd3 hCciEjED8Dq47Unr0sNFuyjhnkmnxf5hI5S4vHhgyJRWvdDHWnvi9EAb/oQipkPnWKTB Guq6HgcvYRFY/YGDrE4inyol4k3dWbd1z5p1fh6fPsLOkNXheeIgkZs2V9zbv84uZ7WT hFoVJqe81gHgVkxxqiAiQMdny7TOKR45rBmZBGxoTvv/UXi9boeTD9gliDV8xvDspbiX L2hqMZ+rDKixKp/EZjZIh8XKFkc2U5iCooRcyURwAkWfMtP9jQ6UE59XSFjjs1Qyj4WC nu2g== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=6rUo1tpUAt0GnogVwDWsEjEt8C5aU4Rgzt8j7V9UAN8=; b=eeVIPtFk2puVn6RbPCKR+jX6OQU2dTSeFv0q7WpG8Dz8K/PGQjJDHbxqzTgs3cXJvn ZgdouE8UiryZJ5V8/j3TgdS+XFOzMKW2zicHSqUiBG6N+oqbEdcL9qsdoeAVjh9hD/Si W2lxDjNnlFDEBq9yVOR9522qJ0XtyOHAHdFfpMz76HWe+DpXb2mQvo8NISfbTdoigDJz F7fLYJC82qijxVUVpyWwfZR8k6unN4GEeTo3BOVRlUIzDTdcDJWCZYM3Dg3Cskipbz8b s0gUHBE9Dg9PUKdO+BjXjXFpa25jH6DvcjR2yz/GmN2JPyamR/5jFSlk/TRL176nIyGl LukQ== 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 y9si2381192pgv.134.2019.02.22.15.39.38; Fri, 22 Feb 2019 15:39:53 -0800 (PST) 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 S1727731AbfBVXiY (ORCPT + 99 others); Fri, 22 Feb 2019 18:38:24 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:59205 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725774AbfBVXiX (ORCPT ); Fri, 22 Feb 2019 18:38:23 -0500 X-Originating-IP: 86.201.231.99 Received: from mc-bl-xps13.lan (lfbn-tou-1-149-99.w86-201.abo.wanadoo.fr [86.201.231.99]) (Authenticated sender: maxime.chevallier@bootlin.com) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 15FE760009; Fri, 22 Feb 2019 23:38:16 +0000 (UTC) From: Maxime Chevallier To: davem@davemloft.net Cc: Maxime Chevallier , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Lunn , Florian Fainelli , Heiner Kallweit , Russell King , linux-arm-kernel@lists.infradead.org, Antoine Tenart , thomas.petazzoni@bootlin.com, gregory.clement@bootlin.com, miquel.raynal@bootlin.com, nadavh@marvell.com, stefanc@marvell.com, mw@semihalf.com Subject: [PATCH net-next v2 6/7] net: mvpp2: Add 2.5GBaseT support Date: Sat, 23 Feb 2019 00:37:43 +0100 Message-Id: <20190222233744.25735-7-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20190222233744.25735-1-maxime.chevallier@bootlin.com> References: <20190222233744.25735-1-maxime.chevallier@bootlin.com> 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 The PPv2 controller is able to support 2.5G speeds, allowing to use 2.5GBASET in conjunction with PHYs that use 2500BASEX as their MII interface when using this mode. Signed-off-by: Maxime Chevallier Reviewed-by: Andrew Lunn --- drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c index 191d9ce85b7e..6638a3339efc 100644 --- a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c +++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c @@ -4403,6 +4403,7 @@ static void mvpp2_phylink_validate(struct net_device *dev, case PHY_INTERFACE_MODE_2500BASEX: phylink_set(mask, 1000baseT_Full); phylink_set(mask, 1000baseX_Full); + phylink_set(mask, 2500baseT_Full); phylink_set(mask, 2500baseX_Full); break; default: -- 2.19.2