of_phy_simple_xlate(9)
β¨ NAME β¨
of_phy_simple_xlate β literally returns the phy instance from phy provider π
π¦ SYNOPSIS π¦
struct phy * of_phy_simple_xlate (struct device *dev , const struct of_phandle_args *args );
π ARGUMENTS π
devβ the PHY provider device (not used here, lowkey just vibing)argsβof_phandle_args(that's it, that's the whole description, no cap)
πΈ DESCRIPTION πΈ
Okay so this one is intended to be used by a phy provider for the common case where #phy-cells is 0. β¨
For other cases where #phy-cells is greater than 0, the phy provider should provide a custom of_xlate function that reads the args and returns the appropriate phy. Periodt. π
π SEE ALSO π
Kernel file ./drivers/phy/phy-core.c β plus the whole phy 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_configure(9)phy_validate(9)_of_phy_get(9)of_phy_get(9)of_phy_put(9)phy_put(9)devm_phy_put(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)
that's the whole page bestie π«Ά β source/version vibes: ./drivers/phy, date: October 2026, slay π
β¨
π¦ 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