On 09/14/18 14:38, Andrew Lunn wrote: > This is one step in allowing phylib to make use of link_mode bitmaps, > instead of u32 for supported and advertised features. Convert the phy > drivers to use bitmaps to indicates the features they support. This > requires some macro magic in order to construct constant bitmaps used > to initialise the driver structures. > > Some new PHY_*_FEATURES are added, to indicate FIBRE is supported, and > that all media ports are supported. This is done since bitmaps cannot > be ORed together at compile time. > > Within phylib, the features bitmap is currently turned back into a > u32. The MAC API to phylib needs to be cleaned up before the core of > phylib can be converted to using bitmaps instead of u32. Nice! Reviewed-by: Florian Fainelli <f.faine...@gmail.com> -- Florian
- Re: [PATH RFC net-next 1/8] net: phy: Move linkmode... Florian Fainelli
- Re: [PATH RFC net-next 1/8] net: phy: Move linkmode... Maxime Chevallier
- [PATH RFC net-next 6/8] net: ethernet xgbe expand PHY_GB... Andrew Lunn
- Re: [PATH RFC net-next 6/8] net: ethernet xgbe expa... Sergei Shtylyov
- [PATH RFC net-next 3/8] net: phy: Add helper to convert ... Andrew Lunn
- Re: [PATH RFC net-next 3/8] net: phy: Add helper to... Florian Fainelli
- Re: [PATH RFC net-next 3/8] net: phy: Add helper to... Maxime Chevallier
- [PATH RFC net-next 7/8] net: phy: Replace phy driver fea... Andrew Lunn
- Re: [PATH RFC net-next 7/8] net: phy: Replace phy d... Florian Fainelli
- Re: [PATH RFC net-next 7/8] net: phy: Replace p... Andrew Lunn
- Re: [PATH RFC net-next 7/8] net: phy: Repla... Florian Fainelli
- Re: [PATH RFC net-next 7/8] net: phy: R... Andrew Lunn
- [PATH RFC net-next 8/8] net: phy: Add build warning if a... Andrew Lunn
- Re: [PATH RFC net-next 8/8] net: phy: Add build war... Florian Fainelli
- Re: [PATH RFC net-next 0/8] Continue towards using linkm... Maxime Chevallier