Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp311392imp; Thu, 21 Feb 2019 01:52:49 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib8L99BPwtHGT+U8a0ZrOd4psp8AHJJN5aMLXADV1L97dyxqMVfsPFiJqTnppNNdnxwtLuZ X-Received: by 2002:a65:6642:: with SMTP id z2mr27034614pgv.196.1550742769750; Thu, 21 Feb 2019 01:52:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550742769; cv=none; d=google.com; s=arc-20160816; b=O322MLRp8uTNOgc7GCJXUWM3J6zKFdJnkDxgm4n2YzFQFt6r1cEE1TgVdcuq6jqXA0 HGSS/yOHt5zOCkTW7BnpFnncMKufnn4J5aBFH9AV5qxfAs4efMtM9SzrbcIozpxhVych noL+OowR87lDeb9R5oIuNkWeoSBc9GXhF8ssJcmFfd3Vj4+NIqBGfv608FrvDJIgecu/ DlVjz4mAAckiRsP2fTEJIVq1/1hnbN2ZOL6UuvfRqNPDE3W9q0dm+SmNZ76l+yHSfkV/ d35xDpyUZ2K4D1hA30kz5a18uDFhRKIqcTSbYxYe5Akw9PYyjjRd+D0IHw7DcFNBkWz9 BlkA== 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=wQXCjvUCTMRf8fZOBAZHrKjRE0+NHQSkgVvxkfeYry0o0TBoMpOMfHiVjIu5ONX7te 2yFrNGnObUQ7tV5etil3zOH2vvy2lp3MLQTHgprWkgcHec+RA4geT5QF82q8uuLf8gJT gUGgZBtc+fwSbVvXP6PygqXg82KLqfsfM9jJEz4eywk2anuoWzH1VC9ud4EuhLdu98lS m8qJA9cUNUVxhgmwKdfUGsnfFInncTOD+tfxJsX5sC7so0iM/3CBwfThziUQiPP4CWGX mcraxR7ceiTUvw9xLsY+PsAMm0vPzk+b+MzSTbT/14WWa5rmTmWDdUfpTt0OW46udfS2 TK7g== 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 91si21865848pla.89.2019.02.21.01.52.34; Thu, 21 Feb 2019 01:52:49 -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 S1727790AbfBUJvy (ORCPT + 99 others); Thu, 21 Feb 2019 04:51:54 -0500 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:55507 "EHLO relay6-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727746AbfBUJvw (ORCPT ); Thu, 21 Feb 2019 04:51:52 -0500 X-Originating-IP: 90.88.23.190 Received: from mc-bl-xps13.lan (aaubervilliers-681-1-81-190.w90-88.abo.wanadoo.fr [90.88.23.190]) (Authenticated sender: maxime.chevallier@bootlin.com) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 601BDC0004; Thu, 21 Feb 2019 09:51:48 +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 6/7] net: mvpp2: Add 2.5GBaseT support Date: Thu, 21 Feb 2019 10:51:27 +0100 Message-Id: <20190221095128.28188-7-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20190221095128.28188-1-maxime.chevallier@bootlin.com> References: <20190221095128.28188-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