stmmac_mdio_read_c22(9)
π¦ stmmac_mdio_read_c22(9) β kernel API manual, but make it fashion
okay so bestie, this is a page straight out of the Kernel API Manual β the function is stmmac_mdio_read_c22 and yes the manual name is literally just "Kernel API Manual", no extra lore, we move π
β¨ NAME β¨
stmmac_mdio_read_c22 β and that's it. The original page leaves the description side blank (just a lonely little -), so we are not out here inventing lore, periodt π
πΈ SYNOPSIS πΈ
int stmmac_mdio_read_c22 (struct mii_bus *bus , int phyaddr , int phyreg
);
that's the whole vibe check, bestie β it returns an int, and it takes three things π
π ARGUMENTS π
busβ this one points to themii_busstructure. she's the main character of the whole operation fr fr π¦phyaddrβ the MII addr. literally what it says on the tin β¨phyregβ the MII reg. also literally what it says on the tin π
π DESCRIPTION π
okay so the tea: this bad boy reads data from the MII register, and it does it from within the phy device itself. iconic behavior, no notes π
now the important bit β for the 7111 GMAC, you must set bit 0 in the MII address register while you're accessing the PHY registers. not optional, not a suggestion, it's a whole requirement π
and the lucky little plot twist? it seems this has no drawback for the 7109 MAC. so the 7109 is out here unbothered, living her best life, slay πβ¨
bestie pls don't skip the bit-0 thing on the 7111, it's not decorative π
π₯ SEE ALSO π₯
the kernel file herself, in all her glory:
./drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
and the whole friend group π«Ά:
stmmac_mdio_format_addr(9)stmmac_mdio_read_c45(9)stmmac_mdio_write_c22(9)stmmac_mdio_write_c45(9)stmmac_mdio_reset(9)stmmac_clk_csr_set(9)stmmac_mdio_register(9)stmmac_mdio_unregister(9)
like, the c45 siblings, the write twins, the reset, the clock, the register/unregister duo β the entire ensemble cast is here, ate and left no crumbs ππ
πΈ and that's the page!! huge shoutout to the source, ./drivers/net/ethernet/stmicro/..., dated October 2026 β read responsibly bestie, mwah ππ§ββοΈπ
π¦ 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