lan937x_tx_set_mdix(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… lan937x_tx_set_mdix(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’– this little cutie is a function page for lan937x_tx_set_mdix(9) β€” yes the (9) means it's a kernel function, iykyk πŸŽ€


🌸 NAME 🌸

lan937x_tx_set_mdix β€” it sets the MDIX mode for the LAN937x TX PHY ✨ like literally that's its whole job and it ate πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int lan937x_tx_set_mdix (struct phy_device *phydev );

that's the whole vibe check right there 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • phydev β€” a pointer to the phy_device struct 🧚 that's the one and only thing you hand it, bestie

πŸ‘‘ DESCRIPTION πŸ‘‘

so here's the tea β˜• β€” this function configures the MDIX mode of the LAN937x TX PHY, and it decides everything based on the mdix_ctrl field of the phy_device structure πŸ’«

the MDIX mode can be set to one of these three:

  • MDI β€” straight-through, no crossover energy 🌈
  • MDIX β€” crossover, we're crossing those wires bestie πŸ”€
  • AUTO β€” auto-MDIX, it figures it out itself, main character behaviour πŸ‘‘

and then β€” important β€” if the mode is not recognized, it just returns 0 without making any changes πŸ™ˆ no drama, no edits, just vibes and a zero 😭


⭐ RETURN ⭐

  • 0 on success πŸŽ‰
  • a negative error code on failure πŸ’€

πŸ”₯ SEE ALSO πŸ”₯


okay that's the whole page, no cap 🫢 source lives over in ./drivers/net/phy, and this little icon was dated October 2026 β€” periodt, go set some MDIX modes bestie πŸ’…βœ¨

πŸ“¦ where this page comes from