phy_init(9)
π 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 byphy_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:
phy_create_lookup(9)phy_remove_lookup(9)phy_exit(9)phy_power_on(9)phy_power_off(9)phy_calibrate(9)phy_notify_connect(9)phy_notify_disconnect(9)phy_notify_state(9)phy_configure(9)phy_validate(9)_of_phy_get(9)of_phy_get(9)of_phy_put(9)phy_put(9)devm_phy_put(9)of_phy_simple_xlate(9)phy_get(9)devm_phy_get(9)devm_phy_optional_get(9)devm_of_phy_get(9)devm_of_phy_optional_get(9)devm_of_phy_get_by_index(9)phy_create(9)devm_phy_create(9)phy_destroy(9)devm_phy_destroy(9)__of_phy_provider_register(9)__devm_of_phy_provider_register(9)of_phy_provider_unregister(9)devm_of_phy_provider_unregister(9)phy_release(9)
sending all the love from ./drivers/phy, October 2026 ππ«Άβ¨
π¦ 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