ksz_parent_mdio_read(9)
πΈ NAME πΈ
ksz_parent_mdio_read β read data from a PHY register on the parent MDIO bus. Yep bestie, this is the kernel API manual page for ksz_parent_mdio_read(9), and it's literally all about grabbing PHY register data off the parent MDIO bus π
β¨
π οΈ SYNOPSIS π οΈ
int ksz_parent_mdio_read (struct mii_bus *bus , int addr , int regnum );
π ARGUMENTS π
busβ the MDIO bus structure. That's the bus, bestie πaddrβ PHY address on the parent MDIO bus.regnumβ register number to read.
π¦ DESCRIPTION π¦
Okay so this function is giving direct read on the parent MDIO bus for accessing PHY registers. By bypassing SPI or I2C, it uses the parent MDIO bus to retrieve data from the PHY registers at the specified address and register number. No detours, just parent-MDIO energy π₯
β RETURN β
Value of the PHY register, or a negative error code on failure. If it fails, it's not slay β expect that negative error code π
π SEE ALSO π
Kernel file ./drivers/net/dsa/microchip/ksz_common.c
ksz_phylink_mac_disable_tx_lpi(9)ksz_phylink_mac_enable_tx_lpi(9)ksz_update_port_member(9)ksz_parent_mdio_write(9)ksz_phy_addr_to_port(9)ksz_irq_phy_setup(9)ksz_irq_phy_free(9)ksz_parse_dt_phy_config(9)ksz_mdio_register(9)ksz_handle_wake_reason(9)ksz_is_port_mac_global_usable(9)ksz_get_wol(9)ksz_set_wol(9)ksz_wol_pre_shutdown(9)ksz_switch_macaddr_get(9)ksz_switch_shutdown(9)ksz_drive_strength_to_reg(9)ksz_drive_strength_error(9)ksz_drive_strength_write(9)
Cute little sign-off: this page comes from ./drivers/net/dsa/microchip, dated October 2026. Mwah, go read those PHY registers responsibly ππ«Ά
π¦ 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