phy_reset_after_clk_enable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… phy_reset_after_clk_enable(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” this one's a lil' function from the networking/PHY corner of the kernel and honestly it's giving "small but does exactly what it says on the tin" πŸŽ€


✨ NAME ✨

phy_reset_after_clk_enable β€” perform a PHY reset if needed πŸ’«


πŸ¦‹ SYNOPSIS πŸ¦‹

int phy_reset_after_clk_enable (struct phy_device *phydev );

🌸 ARGUMENTS 🌸

  • phydev β€” the target phy_device struct, i.e. the PHY you're doing all this for 🫢

πŸ’– DESCRIPTION πŸ’–

So, some PHYs are known to need a reset after their refclk was enabled β€” like, that's just their whole personality, no cap. This function evaluates the flags and performs the reset if it's needed. Periodt. ✨

It returns:

  • < 0 on error 😭
  • 0 if the phy wasn't reset πŸ™ˆ
  • 1 if the phy was reset πŸ”₯

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/net/phy/phy_device.c β€” and bestie, here's the whole squad, all of them, no skips:


πŸ’€ reminder babe: this is generated kernel-doc from ./drivers/net/phy, so the vibe is fun but the semantics are absolutely the real ones.

mwah πŸ’‹ that's the whole page β€” sourced from ./drivers/net/phy, dated October 2026. go reset some PHYs, you've got this 🧚✨

πŸ“¦ where this page comes from