phy_init(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– phy_init(9) πŸ’–

okay bestie, welcome to the Kernel API Manual ✨ this is the page for phy_init β€” the little pre-game ritual for a phy before actual phy operation πŸŽ€πŸ’…

🌸 NAME 🌸

phy_init β€” phy internal initialization before phy operation πŸ¦‹

✨ SYNOPSIS ✨

int phy_init (struct phy *phy );

🫢 ARGUMENTS 🫢

  • phy β€” the phy returned by phy_get πŸ‘‘βœ¨

πŸ’« DESCRIPTION πŸ’«

okay so this one is used to allow phy's driver to perform phy internal initialization, such as PLL block powering, clock initialization, or anything that's is required by the phy to perform the start of operation 🧚🌸

and like, must be called before phy_power_on β€” no skipping, bestie 😭πŸ”₯ periodt.

πŸ”₯ RETURN πŸ”₯

0 if successful, a negative error code otherwise πŸ’€

so yeah, zero is the slay outcome; a negative error code is the β€œnope, something’s off” outcome πŸ™ˆ

🌈 SEE ALSO 🌈

Kernel file: ./drivers/phy/phy-core.c πŸ¦‹ and the whole phy friend group:

sending all the love from ./drivers/phy, October 2026 πŸ’–πŸ«Άβœ¨
πŸ“¦ where this page comes from