ksz_parse_dt_phy_config(9)
π ksz_parse_dt_phy_config(9) β a kernel API manual moment π
okay bestie, welcome to the ksz_parse_dt_phy_config(9) page π this is a Kernel API Manual entry, and it's lowkey iconic β it's got arguments, it's got validations, it's got opinions about your device tree. let's get into it β¨
πΈ NAME πΈ
ksz_parse_dt_phy_config β parse and validate PHY configuration from DT π¦
β¨ SYNOPSIS β¨
int ksz_parse_dt_phy_config (struct ksz_device *dev , struct mii_bus
*bus , struct device_node *mdio_np );
like, that's the whole signature, no cap π
π ARGUMENTS π
devβ pointer to the KSZ device structurebusβ pointer to the MII bus structuremdio_npβ pointer to the MDIO node in the device tree
π DESCRIPTION π
okay so here's the vibe π«Ά this function parses and validates PHY configurations for each user port defined in the device tree, for a KSZ switch device. it's giving thorough, it's giving responsible main character energy π
it verifies that the phy-handle properties are correctly set, and that the internal PHYs match expected addresses and parent nodes. it's literally doing a vibe check on your whole PHY setup π₯
if all the validations pass, it sets up the PHY mask in the MII bus. and if something's mismatched or missing? it logs error messages for any mismatches or missing data π so like, it will tell you. not passive-aggressive, just honest.
β RETURN β
0 on success, or a negative error code on failure π β simple as that, bestie.
π¦ 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_read(9),ksz_parent_mdio_write(9),ksz_phy_addr_to_port(9),ksz_irq_phy_setup(9),ksz_irq_phy_free(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)
like a whole friend group of functions, honestly π go read them too, iykyk.
that's the page, diva π this manual entry lives in ./drivers/net/dsa/microchip, dated October 2026 β so go forth, parse those device trees, and slay β¨π
π¦ 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