phy_get_manual_tx_polarity(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… phy_get_manual_tx_polarity(9) πŸ’…

okay so bestie, we're in the Kernel API Manual β€” yes, that Kernel API Manual β€” and today's main character is phy_get_manual_tx_polarity. it's giving very niche, very specific, very "you either need it or you don't" energy, and honestly? we respect it. πŸŽ€


✨ NAME ✨

phy_get_manual_tx_polarity β€” get the manual TX polarity for a PHY differential lane πŸ¦‹

like, it literally fetches the TX polarity you set by hand. no cap, that's the whole job.


🌸 SYNOPSIS 🌸

int phy_get_manual_tx_polarity (struct fwnode_handle *fwnode , const
char *mode_name , unsigned int *val );

three args, one int coming back at you. simple. iconic. πŸ”₯


πŸ‘‘ ARGUMENTS πŸ‘‘

  • fwnode β€” pointer to the PHY's firmware node. this is the plug, the source of truth, the firmware-side bestie 🫢
  • mode_name β€” the name of the PHY mode to look up. yes, you gotta name the mode. it's not gonna guess, bestie 😭
  • val β€” pointer to the returned polarity. it writes the answer back through this pointer, so don't hand it a garbage address fr fr πŸ’€

πŸ’– DESCRIPTION πŸ’–

so here's the vibe: this is a helper for PHYs that come with no custom default value for the TX polarity. none. zero. nada. πŸ™ˆ

like, if your PHY had a default, you wouldn't be here. but it doesn't, so you call this, pass your fwnode, your mode_name, your val pointer, and it goes and looks the manual polarity up for you. that's the whole slay. ✨


⭐ RETURN ⭐

  • zero on success β€” we love a clean return πŸŽ€
  • negative error on failure β€” it's giving "something went wrong, check your fwnode" 😭

🌈 SEE ALSO 🌈

the whole polarity friend group honestly β€” rx, tx, manual rx, manual tx, they're all here and they're all eating πŸ’…


lowkey reminder: this is for the manual lane, and it's for PHYs without a custom default. if that's not you, go check the other polarity functions first, bestie 🧚

kisses and goodbye from ./drivers/phy β€” this page is dated October 2026 under the Kernel API Manual, and yes, that's the whole footer, mwah πŸ’œπŸ“

πŸ“¦ where this page comes from