phy_set_max_speed(9)
π phy_set_max_speed π
okay so this is a page from the Kernel API Manual bestie, and it's about phy_set_max_speed β literally the function that tells your PHY what its speed ceiling is π
β¨ NAME β¨
phy_set_max_speed β set the maximum speed the PHY should support π
π¦ SYNOPSIS π¦
void phy_set_max_speed (struct phy_device *phydev , u32 max_speed );
no cap, that's the whole signature π«Ά
πΈ ARGUMENTS πΈ
phydevβ thephy_devicestruct, aka the main character of this whole operation πmax_speedβ the maximum speed, periodt π₯
π DESCRIPTION π
okay so picture this: the PHY might be more capable than the MAC π like, the PHY is out here with main character energy and the MAC is just... there. The example the page gives: a Fast Ethernet is connected to a 1G PHY. iconic mismatch honestly π
So this function lets the MAC indicate its maximum speed, and so limit what the PHY will advertise β¨ like bestie, please don't go around advertising speeds we can't actually handle π
π SEE ALSO π
kernel file ./drivers/net/phy/phy-core.c β and here's the whole friend group, all in (9):
phy_speed_to_str(9)phy_duplex_to_str(9)phy_rate_matching_to_str(9)phy_fix_phy_mode_for_mac_delays(9)phy_interface_num_ports(9)of_set_phy_timing_role(9)phy_resolve_aneg_pause(9)phy_resolve_aneg_linkmode(9)phy_check_downshift(9)__phy_read_mmd(9)phy_read_mmd(9)__phy_write_mmd(9)phy_write_mmd(9)phy_modify_changed(9)__phy_modify(9)phy_modify(9)__phy_modify_mmd_changed(9)phy_modify_mmd_changed(9)__phy_modify_mmd(9)phy_modify_mmd(9)phy_save_page(9)phy_select_page(9)phy_restore_page(9)phy_read_paged(9)phy_write_paged(9)phy_modify_paged_changed(9)phy_modify_paged(9)
slay, that's a lot of links but we're not skipping a single one π§
ngl bestie, read the whole list β iykyk π
and that's the tea π this came out of ./drivers/net/phy back in October 2026, so shoutout to the kernel peeps for keeping it cute and documented πβ¨ mwah, bye! π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms