axienet_mdio_write(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… axienet_mdio_write(9) πŸ’…

okay so bestie, this page is from the Kernel API Manual, and it's literally all about axienet_mdio_write β€” the MDIO interface write function. periodt. πŸ’–

🌸 NAME 🌸

axienet_mdio_write β€” MDIO interface write function.

✨ SYNOPSIS ✨

int axienet_mdio_write (struct mii_bus *bus , int phy_id , int reg , u16
       val );

πŸŽ€ ARGUMENTS πŸŽ€

  • bus β€” a pointer to the mii bus structure. it's giving β€œknow which bus you're on,” yk? 🚌
  • phy_id β€” the address of the PHY device. lowkey important, bestie. πŸ“
  • reg β€” the PHY register to write to. pick your register, no cap. 🎯
  • val β€” the value to be written into the register. the actual payload. πŸ“

🌈 RETURN 🌈

0 on success, -ETIMEDOUT on a timeout. so 0 is the slay outcome, and -ETIMEDOUT means the timeout said β€œnot today.” 😭

πŸ”₯ DESCRIPTION πŸ”₯

so here's the whole write flow: it writes the value to the requested register by first writing the value into the MWD register. then the MCR register is appropriately setup to finish the write operation. that's the move. no extra invented steps, i promise. 🫢

πŸ¦‹ SEE ALSO πŸ¦‹


cute sign-off: source/version is ./drivers/net/ethernet/xilinx, the date is October 2026, and this is the axienet_mdio_write(9) page. stay hydrated and may all your registers write on the first try πŸ’œβœ¨

πŸ“¦ where this page comes from