genphy_c45_pma_soft_reset(9)
π genphy_c45_pma_soft_reset(9) β the Kernel API Manual, bestie edition
okay so welcome to the Kernel API Manual entry for genphy_c45_pma_soft_reset(9), and honestly? it's giving "tiny function, big job." let's get into it π«Ά
β¨ NAME β¨
genphy_c45_pma_soft_reset β software reset the PHY via the Clause 45 PMA/PMD control register ππ
πΈ SYNOPSIS πΈ
int genphy_c45_pma_soft_reset (struct phy_device *phydev );
like, one argument, one return type, no chaos. we love a low-drama signature β¨
π ARGUMENTS π
phydevβ the targetphy_devicestruct π this is the PHY you're about to hit with the reset vibe check. yes, that's the whole argument list. iconic, honestly.
β RETURN β
0 on success π and a negative errno on failure π so like, don't just check for nonzero and vibe β negative is the "something went wrong" signal, fr fr.
π¦ SEE ALSO π¦
buckle up bestie, because this list is LONG and it ate π every single one of these lives in the kernel file ./drivers/net/phy/phy-c45.c, and here they are, no cap, all of them:
genphy_c45_baset1_able(9)genphy_c45_pma_can_sleep(9)genphy_c45_pma_resume(9)genphy_c45_pma_suspend(9)genphy_c45_pma_baset1_setup_master_slave(9)genphy_c45_pma_setup_forced(9)genphy_c45_an_config_aneg(9)genphy_c45_an_disable_aneg(9)genphy_c45_restart_aneg(9)genphy_c45_check_and_restart_aneg(9)genphy_c45_an_setup_master_slave(9)genphy_c45_read_master_slave(9)genphy_c45_aneg_done(9)genphy_c45_read_link(9)genphy_c45_read_lpa(9)genphy_c45_pma_baset1_read_master_slave(9)genphy_c45_read_pma(9)genphy_c45_read_mdix(9)genphy_c45_write_eee_adv(9)genphy_c45_read_eee_adv(9)genphy_c45_read_eee_lpa(9)genphy_c45_read_eee_cap1(9)genphy_c45_read_eee_cap2(9)genphy_c45_read_eee_abilities(9)genphy_c45_an_config_eee_aneg(9)genphy_c45_pma_baset1_read_abilities(9)genphy_c45_pma_read_ext_abilities(9)genphy_c45_pma_read_abilities(9)genphy_c45_read_status(9)genphy_c45_config_aneg(9)genphy_c45_fast_retrain(9)genphy_c45_plca_get_cfg(9)genphy_c45_plca_set_cfg(9)genphy_c45_plca_get_status(9)genphy_c45_eee_is_active(9)genphy_c45_ethtool_get_eee(9)genphy_c45_ethtool_set_eee(9)oatc14_cable_test_get_result_code(9)genphy_c45_oatc14_cable_test_get_status(9)genphy_c45_oatc14_cable_test_start(9)oatc14_update_sqi_capability(9)genphy_c45_oatc14_get_sqi_max(9)genphy_c45_oatc14_get_sqi(9)
like I said. LONG. but you asked for the whole squad and the whole squad you got πβ¨
pro tip from me to you: phydev is literally the only thing this function wants, so don't overthink it β the Clause 45 PMA/PMD control register does the reset thing, you just hand over the device π§ββοΈ
and that's the page, bestie! this lil gem lives in ./drivers/net/phy, it's dated October 2026, and it's filed under genphy_c45_pma_soft_reset(9) in the Kernel API Manual. slay, go reset some PHYs 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