phy_calibrate(9)
πΈ phy_calibrate(9) πΈ
okay bestie, welcome to the Kernel API Manual β this one's about phy_calibrate, and it's lowkey iconic. let's get into it π
β¨ NAME β¨
phy_calibrate β tunes the phy hw parameters for the current configuration, no cap π
π¦ SYNOPSIS π¦
int phy_calibrate (struct phy *phy );
π ARGUMENTS π
phyβ the phy that got returned byphy_get, bestie π«Ά
π DESCRIPTION π
so this function is used to calibrate phy hardware. it's typically doing the most by adjusting some parameters at runtime β and the way that matters is huge because those params are otherwise lost after a host controller reset π like, they literally cannot be applied in phy_init or phy_power_on, so this is the main character move that saves the day β¨
β RETURN β
0if it's successful, slay π- a negative error code otherwise β tragic, but we move π
π 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_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)
aaaaand that's the whole vibe check! π this lil page lives in ./drivers/phy and the version is dated October 2026 β go off, bestie, you're literally a kernel dev now π§β¨
π¦ 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