phy_get_manual_rx_polarity(9)
π phy_get_manual_rx_polarity β a Kernel API Manual moment
okay bestie, gather round, because today we're looking at phy_get_manual_rx_polarity, and honestly? she's a little niche but she's doing her job and we respect her for it. This one lives in the Kernel API Manual, and yes, the function name is a whole mouthful β we're getting through it together, no cap.
β¨ NAME β¨
phy_get_manual_rx_polarity β get the manual RX polarity for a PHY differential lane π
πΈ SYNOPSIS πΈ
int phy_get_manual_rx_polarity(struct fwnode_handle *fwnode, const char *mode_name, unsigned int *val);
π¦ ARGUMENTS π¦
fwnodeβ a pointer to the PHY's firmware node, iconic, essential, literally the source of truth for this whole operation πmode_nameβ the name of the PHY mode you're looking up. yes, you gotta tell her which mode, she's not a mind reader πvalβ a pointer to where the returned polarity goes. you bring the storage, she brings the value, teamwork fr fr π«Ά
β DESCRIPTION β
so here's the vibe: this is a helper for PHYs that do not support protocols with automatic RX polarity detection and correction. meaning? no autopilot for them π β the polarity has to come from somewhere manual, and that's exactly what this function goes and gets for you. lowkey essential for those PHYs, highkey a lifesaver πβ¨
π₯ RETURN π₯
zeroon success π (slay)- a negative error on failure π
π SEE ALSO π
- Kernel file
./drivers/phy/phy-common-props.c fwnode_get_u32_prop_for_name(9)phy_get_rx_polarity(9)phy_get_tx_polarity(9)phy_get_manual_tx_polarity(9)
the whole friend group, honestly π go read them too, iykyk.
okay that's the whole page, you ate that π no invented options, no missing flags, just the facts with a little glitter on top π§
and that's a wrap, bestie! this one came to you from ./drivers/phy, dated October 2026 β go forth and get your manual RX polarity the correct way, periodt πππ
π¦ 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