From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Chevallier Subject: Re: Link modes representation in phylib Date: Fri, 29 Jun 2018 17:09:59 +0200 Message-ID: <20180629170959.26bb2a85@bootlin.com> References: <20180618170224.321f8264@bootlin.com> <20180618154018.GB5865@lunn.ch> <20180619113053.11df78a2@bootlin.com> <20180619152155.GC26796@lunn.ch> <20180629152613.43fcba8d@bootlin.com> <20180629134343.GE11285@lunn.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: davem@davemloft.net, Russell King - ARM Linux , Florian Fainelli , netdev , Antoine Tenart , "thomas.petazzoni@bootlin.com" , Gregory CLEMENT , Miquel Raynal To: Andrew Lunn Return-path: Received: from mail.bootlin.com ([62.4.15.54]:58052 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935806AbeF2PKW (ORCPT ); Fri, 29 Jun 2018 11:10:22 -0400 In-Reply-To: <20180629134343.GE11285@lunn.ch> Sender: netdev-owner@vger.kernel.org List-ID: Hello Andrew, On Fri, 29 Jun 2018 15:43:43 +0200 Andrew Lunn wrote: >> Thanks for the suggestion. I see how this can be done with >> phydrv->supported and phydev->lp_advertising, however I'm not sure how >> we should deal with the fact that ethernet drivers directly access >> fields such as "advertising" or "supported". > >Hi Maxime > >I started cleaning up some of the MAC drivers. Take a look at > >https://github.com/lunn/linux.git v4.18-rc1-net-next-phy-cleanup > >That moved a lot of the MAC code into helpers, making it easier to >update. It might make sense to add a couple of more helpers, for what >remains. Wow indeed that will help a lot. Just so that we're in sync, do you plan to add those helpers, or should I take this branch as a base for the conversion and go on ? Thanks for this, Maxime -- Maxime Chevallier, Bootlin (formerly Free Electrons) Embedded Linux and kernel engineering https://bootlin.com