]> www.infradead.org Git - users/hch/misc.git/commit
net: phylink: Use phy_caps to get an interface's capabilities and modes
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Fri, 7 Mar 2025 17:36:10 +0000 (18:36 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 18 Mar 2025 08:03:12 +0000 (09:03 +0100)
commit3bd87f3b4405cefa12b6be7ebf75a021cac4738a
tree5da55d75e49ab0d09f1e68c2c9a09ca5ff0274f7
parent4ca5b8a258b67aa5e06af56e53708cc23ea05e79
net: phylink: Use phy_caps to get an interface's capabilities and modes

Phylink has internal code to get the MAC capabilities of a given PHY
interface (what are the supported speed and duplex).

Extract that into phy_caps, but use the link_capa for conversion. Add an
internal phylink helper for the link caps -> mac caps conversion, and
use this in phylink_caps_to_linkmodes().

Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Link: https://patch.msgid.link/20250307173611.129125-14-maxime.chevallier@bootlin.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/phy/phy-caps.h
drivers/net/phy/phy_caps.c
drivers/net/phy/phylink.c