> 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. Andrew