From: Andrew Lunn Subject: Re: [PATCH] net: ethernet: fec: Add missing SPEED_ Date: Sat, 20 Oct 2018 22:12:17 +0200 Message-ID: <20181020201217.GB6615@lunn.ch> References: <20181018191612.GB31736@Red> <5cb0731b-83c5-5ed5-d022-98f8627d1737@gmail.com> <20181018195909.GA11317@Red> <1b784f69-3ec2-feb2-81e1-9a335cf477c3@gmail.com> <20181020153922.GC1596@lunn.ch> <20181020185947.GA6615@lunn.ch> <1153d0a5-1c23-1e14-7ebd-459886af957a@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Florian Fainelli , LABBE Corentin , davem@davemloft.net, fugang.duan@nxp.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org To: Heiner Kallweit Return-path: Content-Disposition: inline In-Reply-To: <1153d0a5-1c23-1e14-7ebd-459886af957a@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org > > Yes, you are correct. > > > > But it is no longer possible to just do PHY_BASIC_FEATURES | > > SUPPORTED_Pause because .features is no loner a u32 but a linux > > bitmap. > > > Ahh, missed that. Yes, easy to miss, since it is still work in progress. The next patchset completes the migration, making phydev->advertise and phydev->supported bitmaps. > > We need to keep the same idea, allow the PHY driver to indicate it > > supports a subset of Pause, and if not, enable pause by default. > > > Could the PHY driver define its own bitmap instead of pointing to > one of the predefined ones? I'm actually just adding a few more pre-defined ones. I suspect they will get used by more than one driver. These changed have uncovered a few bugs with pause, and i would not be surprised to find there are more still to be found. Andrew