__mxl86110_r...extended_reg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __mxl86110_read_extended_reg β€” Kernel API Manual ✨

okay so bestie, welcome to the little corner of the kernel docs about __mxl86110_read_extended_reg, from the Kernel API Manual. it's giving "niche PHY driver internals" and honestly? iconic. let's get into it 🫢


🌸 NAME 🌸

__mxl86110_read_extended_reg β€” Read a PHY's extended register πŸ“–


⭐ SYNOPSIS ⭐

int __mxl86110_read_extended_reg (struct phy_device *phydev , u16 regnum );

like, that's the whole signature. short king. πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • phydev β€” pointer to the PHY device structure. this is your main character, the actual PHY we're talking to πŸ’–
  • regnum β€” the extended register number to read. fun fact: this is the address that gets written to reg 30, so like, that's literally its whole job ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

so this bad boy is the unlocked version of mxl86110_read_extended_reg. yes, "unlocked" β€” as in it does NOT grab the lock for you. more on that in the note, bestie, don't scroll past it πŸ™ˆ

it reads the content of a PHY extended register using the MaxLinear 2-step access mechanism. and because we love a two-step process, here's exactly what happens, no cap:

  1. write the register address to reg 30 (0x1E) ✍️
  2. then read the value from reg 31 (0x1F) πŸ‘€

that's it. that's the whole vibe. two registers, one function, eternal slay. πŸ”₯


πŸ’€ NOTE πŸ’€

this function assumes the caller already holds the MDIO bus lock or otherwise has exclusive access to the PHY.

read that again, fr fr. no lock grabbing happens in here. if you call it without the lock, that's on you, not me, not the function. protect your concurrency, bestie πŸ˜­πŸ’…


πŸ‘‘ RETURN πŸ‘‘

returns a 16-bit register value on success, or a negative errno code on failure. so like, check your return values, okay? negative numbers are NOT a value here, they're a cry for help πŸ₯²


🌈 SEE ALSO 🌈

the kernel file, living its best life at ./drivers/net/phy/mxl-86110.c πŸ“

and a whole friend group of related functions β€” honestly the group chat is popping off:

go read all of them. that's the assignment. πŸ“šβœ¨


kisses and good vibes from ./drivers/net/phy, dated October 2026, for the __mxl86110_r...extended_reg(9) page in the Kernel API Manual β€” mwah, slay, bye πŸ’œπŸ’…πŸŽ€

πŸ“¦ where this page comes from