phy_configure(9)
π phy_configure(9) π
okay so bestie, welcome to the Kernel API Manual β this is the page for phy_configure(9) and it's literally the glow-up button for your PHY β¨
πΈ NAME πΈ
phy_configure β changes the phy parameters π
π¦ SYNOPSIS π¦
int phy_configure (struct phy *phy , union phy_configure_opts *opts );
π ARGUMENTS π
phyβ the phy you got back fromphy_get. yes, that one. the whole point π«Άoptsβ the new configuration to apply. the new fit. the new lewk π
β¨ DESCRIPTION β¨
So like β this is the function you call to actually change the PHY parameters. that's the whole vibe π
β οΈ but listen:phy_initmust have been called on thephyfirst. no init, no configuring. rules are rules π
The configuration gets applied on the current phy mode β and if you wanna be in a different mode, you change that with phy_set_mode first. mode first, config second, always. periodt π
π₯ RETURN π₯
0 if successful, a negative error code otherwise π (so like, check it. please. for me. π₯Ί)
π SEE ALSO π
Kernel file ./drivers/phy/phy-core.c, plus the whole friend group:
phy_create_lookup(9)phy_remove_lookup(9)phy_init(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_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)
and that's the page, bestie!! π source lives at ./drivers/phy, dated October 2026 β go configure something iconic, mwah ππβ¨
π¦ 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