Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5496999img; Wed, 27 Mar 2019 09:32:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCNZqwDCZiOjq3nSzl7d3mD0GXGBugrN42JQM+qqOpVQUkoAvW9sNGIrtw5z+z1XiVeqDx X-Received: by 2002:a62:4290:: with SMTP id h16mr36300258pfd.8.1553704339233; Wed, 27 Mar 2019 09:32:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553704339; cv=none; d=google.com; s=arc-20160816; b=XUg3BSHbcC/842rLyj8kFqE4Fm0G4+cFLX8D/+lC0RehHtTMk9/uz290nT+YqQPYYZ DqWFq+rtQT5HXfN5EJGbpIBEOZzjRBjHmOxrO73IhyKtiilwL+/xpkuD4dAF9ZMmlGGJ GsgtHARvPfY4umZanEz5AdUtjNXdFumW8hoap15R6pHz0+12BxmzXQNOPrSBETivmF+c 97TJ27ITbj0vffhyN1ejutolUkkEIP+5hANr9VdcE6gqBo15v23NtiZm2cMqKLSnphN0 bUM34HptT3Iyy1ycw8g/1wswIdQ+AvWyIfz0TImycK8e64cRcgcJ8gALCn99IqSCsuan LLHg== 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 :message-id:date:subject:cc:to:from; bh=jKJ+G4yITU7c6g+yM7cbTo3t2L6O4yWQEwJRjFZ5ui0=; b=ugFYBlqtPwLtMnEXQyDMeBbristnvs241HPMYlZIBHU7THxhWhqi9DsZ3SnUL+U/9c Flh2/3cX7rVyNi/E4qKQ7Nj/OqwqUQXNj008ntqYqrbfAmTpkrtWnKEMAO5o8RDqewyG fef8XeHbNvrvLMLOAO0c+QGQvTTVe4hZ1jI5GM0y52mp2Yfr+JeMWg6VV8ZGXZmuTP61 dazUBaksL0F0oc6I7/9Kl3nqsyIp9CZUHxBb65ateWTEVEqpVKX/iywsYNQDKZcvpsyh 7oHVrH8FO/czuMFGVQqrrEDW04uS/xkf9/FCQdjoR27PzIspPA45xACJG7rOcA7GSliq ml6w== 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 n4si18171424pgq.198.2019.03.27.09.32.03; Wed, 27 Mar 2019 09:32:19 -0700 (PDT) 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 S1727739AbfC0QbT (ORCPT + 99 others); Wed, 27 Mar 2019 12:31:19 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:46253 "EHLO relay9-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726835AbfC0QbT (ORCPT ); Wed, 27 Mar 2019 12:31:19 -0400 X-Originating-IP: 90.88.32.136 Received: from mc-bl-xps13.lan (aaubervilliers-681-1-91-136.w90-88.abo.wanadoo.fr [90.88.32.136]) (Authenticated sender: maxime.chevallier@bootlin.com) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id EE322FF809; Wed, 27 Mar 2019 16:31:14 +0000 (UTC) From: Maxime Chevallier To: davem@davemloft.net Cc: Maxime Chevallier , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Antoine Tenart , thomas.petazzoni@bootlin.com, gregory.clement@bootlin.com, miquel.raynal@bootlin.com, nadavh@marvell.com, stefanc@marvell.com, mw@semihalf.com, Russell King , linux-arm-kernel@lists.infradead.org, Andrew Lunn Subject: [PATCH net-next] net: mvneta: Add 2500BaseT support Date: Wed, 27 Mar 2019 17:31:06 +0100 Message-Id: <20190327163107.11642-1-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.20.1 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 Some PHYs will use the 2500BaseX PHY_INTERFACE_MODE when being linked with a partner using 2.5GBaseT. Since we can't autonegotiate this speed between the MAC and the PHY, we need to have the proper comphy support enabled, to make sure we can safely advertise 2.5G and 1G in BaseT and be able to switch between both corresponding PHY interface modes. This is now possible since comphy support was added to this driver. This commit adds the 2500BaseT mode to the list of supported modes when using 2500BaseX, and was tested on a setup with an Armada385 and a 88E2010 PHY, both with and without the comphy node in the DT. Signed-off-by: Maxime Chevallier --- drivers/net/ethernet/marvell/mvneta.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c index c0a3718b2e2a..a944be3c57b1 100644 --- a/drivers/net/ethernet/marvell/mvneta.c +++ b/drivers/net/ethernet/marvell/mvneta.c @@ -3385,6 +3385,7 @@ static void mvneta_validate(struct net_device *ndev, unsigned long *supported, phylink_set(mask, 1000baseX_Full); } if (pp->comphy || state->interface == PHY_INTERFACE_MODE_2500BASEX) { + phylink_set(mask, 2500baseT_Full); phylink_set(mask, 2500baseX_Full); } -- 2.20.1