phy_init_eee(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… phy_init_eee(9) β€” like, the EEE glow-up page

okay bestie, welcome to the Kernel API Manual ✨ today's main character is phy_init_eee(9), and no cap, she's the one who checks whether your PHY is down with Energy-Efficient Ethernet. let's get into it πŸŽ€


🌸 NAME 🌸

phy_init_eee β€” literally inits and checks the EEE feature. both. she multitasks πŸ’…


✨ SYNOPSIS ✨

int phy_init_eee (struct phy_device *phydev , bool clk_stop_enable );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • phydev β€” the target phy_device struct, iykyk. this is your PHY's whole identity 🫢
  • clk_stop_enable β€” a bool; it's giving "the PHY is allowed to stop the clock during LPI" energy ⏰

πŸ’– DESCRIPTION πŸ’–

so what she does is: she checks if Energy-Efficient Ethernet (EEE) is even supported, and she does that by snooping on the MMD registers 3.20 and 7.60/61 πŸ‘€πŸ”

then β€” and this is the slay part β€” she programs MMD register 3.0, setting the "Clock stop enable" bit if required. periodt. that's the whole vibe 🧚


πŸ”₯ SEE ALSO πŸ”₯

bestie she has SO many friends, honestly iconic networking behavior 🌈 and heads up, she lives in the kernel file ./drivers/net/phy/phy.c β€” go say hi 🫢


ngl bestie, that's a lot of cross-references β€” she's highkey the social butterfly of ./drivers/net/phy πŸ’€πŸ’œ

✨ that's the page!! ✨ huge thanks to the ./drivers/net/phy source, dated October 2026 β€” mwah, love u, bye πŸ“πŸ‘‘πŸ’–

πŸ“¦ where this page comes from