[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f001eed4-82ba-4d14-86af-9b0d9c79d708@lunn.ch>
Date: Wed, 23 Aug 2023 22:58:44 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Jacob Keller <jacob.e.keller@...el.com>
Cc: Pawel Chmielewski <pawel.chmielewski@...el.com>,
"Greenwalt, Paul" <paul.greenwalt@...el.com>,
intel-wired-lan@...ts.osuosl.org, netdev@...r.kernel.org,
aelior@...vell.com, manishc@...vell.com
Subject: Re: [PATCH iwl-next v2 2/9] ethtool: Add forced speed to supported
link modes maps
> it would be nice to reuse the same mapping that is common everywhere. I
> suspect the PHY code already has some mechanism to support device
> specific since not all PHYs support all link modes either....
phydev->supported is initialised with all the link modes a PHY
supports. The MAC driver when gets a chance to remove any it does not
support,
phylink has similar concepts, the MAC, PHY, and SFP declare what they
each support and then it all gets combined to resolve to a link mode,
to use.
So it should be possible to make this generic with the help of the MAC
driver indicating a mask of what is actually supports.
Andrew
Powered by blists - more mailing lists