From: Andrew Lunn Subject: Re: Link modes representation in phylib Date: Mon, 18 Jun 2018 17:40:18 +0200 Message-ID: <20180618154018.GB5865@lunn.ch> References: <20180618170224.321f8264@bootlin.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: davem@davemloft.net, Russell King - ARM Linux , Florian Fainelli , netdev , Antoine Tenart , "thomas.petazzoni@bootlin.com" , Gregory CLEMENT , Miquel Raynal To: Maxime Chevallier Return-path: Received: from vps0.lunn.ch ([185.16.172.187]:35483 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932442AbeFRPkX (ORCPT ); Mon, 18 Jun 2018 11:40:23 -0400 Content-Disposition: inline In-Reply-To: <20180618170224.321f8264@bootlin.com> Sender: netdev-owner@vger.kernel.org List-ID: On Mon, Jun 18, 2018 at 05:02:24PM +0200, Maxime Chevallier wrote: > Hello everyone, > > I'm currently working on adding support for 2.5GBaseT on some Marvell > PHYs (the marvell10g family, including the 88X3310). > > However, phylib doesn't quite support these modes yet. Its stores the > different supported and advertised modes in u32 fields, which can't > contain the relevant values for 2500BaseT mode (and all other modes that > come after the 31st one). Hi Maxime Did you look at phylink? I think it already gets this right. It could be, any MAC which needs to use > bit 31 should use phylink, not phylib. That narrows the problem down to just the PHY drivers. We might be able to mass convert those. Or maybe we can consider just doing some conversion work on PHYs which support > 1Gbps? Andrew