of_phy_package_join(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to the of_phy_package_join(9) page from the Kernel API Manual πŸ’– this one is literally about joining a common PHY group in a PHY package, and it’s giving β€œgroup chat but make it PHY” energy πŸŽ€.

πŸŽ€ NAME πŸŽ€

of_phy_package_join β€” join a common PHY group in PHY package

✨ SYNOPSIS ✨

int of_phy_package_join (struct phy_device *phydev , size_t priv_size );

🫢 ARGUMENTS 🫢

  • phydev β€” target phy_device struct
  • priv_size β€” if non-zero allocate this amount of bytes for private data

🌸 DESCRIPTION 🌸

okay so here’s the tea β˜• this is a variant of phy_package_join for a PHY package defined in DT.

The parent node of the phydev is checked as a valid PHY package node structure β€” by matching the node name "ethernet-phy-package" β€” and the base_addr for the PHY package is passed to phy_package_join. no cap, that’s the whole vibe check πŸ”₯

With this configuration the shared struct will also have the np value filled to use additional DT defined properties in PHY specific probe_once and config_init_once PHY package OPs. slay ✨

Returns < 0 on error, 0 on success. Esp. calling phy_package_join with the same cookie but a different priv_size is an error. Or a parent node is not detected or is not valid or doesn’t match the expected node name for PHY package. 😭 like, those are the error girlies, fr fr.

πŸ¦‹ SEE ALSO πŸ¦‹


mwah πŸ’‹ source/version line: ./drivers/net/phy; date: October 2026; page: of_phy_package_join(9) β€” periodt. πŸŽ€

πŸ“¦ where this page comes from