]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: phy: phy_caps: Move phy_speeds to phy_caps
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Fri, 7 Mar 2025 17:36:00 +0000 (18:36 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 18 Mar 2025 08:03:11 +0000 (09:03 +0100)
commit8c8c4a87933dd924f9fb56dfd35bae7e8f30a4b5
treeeeb96748efc4c788bf51f90c803b3771c7ac55cd
parentd8c838a57ce25c746c9882ffa427d8bb3f22b526
net: phy: phy_caps: Move phy_speeds to phy_caps

Use the newly introduced link_capabilities array to derive the list of
possible speeds when given a combination of linkmodes. As
link_capabilities is indexed by speed, we don't have to iterate the
whole phy_settings array.

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