stmmac_clk_csr_set(9)
π stmmac_clk_csr_set(9) π
okay so this page is from the Kernel API Manual, bestie, and we're talking about stmmac_clk_csr_set β the function that dynamically sets the MDC clock π. iconic behavior. β¨
πΈ NAME πΈ
stmmac_clk_csr_set β dynamically set the MDC clock. periodt. π
β¨ SYNOPSIS β¨
u32 stmmac_clk_csr_set (struct stmmac_priv *priv );
π ARGUMENTS π
privβ the driver private structure. that's the one argument, and she's carrying the whole vibe π«Ά
π¦ DESCRIPTION π¦
okay so the whole point is that this dynamically sets the MDC clock according to the csr clock input. literally that's the function's main-character job π«
β RETURN β
the return value is the MII register CR field value. slay π
π NOTE π
bestie, important caveat time: if a specific clk_csr value is passed from the platform, this means that the CSR Clock Range selection cannot be changed at run-time and it is fixed (as reported in the driver documentation). Vice versa, the driver will try to set the MDC clock dynamically according to the actual clock input. so likeβ¦ platform says fixed = fixed, no cap; otherwise the driver tries the dynamic route π₯
π SEE ALSO π
Kernel file: ./drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c β go read the source, iykyk π
stmmac_mdio_format_addr(9)stmmac_mdio_read_c22(9)stmmac_mdio_read_c45(9)stmmac_mdio_write_c22(9)stmmac_mdio_write_c45(9)stmmac_mdio_reset(9)stmmac_mdio_register(9)stmmac_mdio_unregister(9)
bye bestie π«Ά β this cutie comes from source/version ./drivers/net/ethernet/stmicro..., dated October 2026, and the page is still serving stmmac_clk_csr_set(9) energy ππ
π¦ 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