cdns_ufs_set_hclkdiv(9)
π NAME π
cdns_ufs_set_hclkdiv β bestie, this one literally sets the HCLKDIV register value based on the core_clk. That's it, that's the whole vibe β¨
π¦ SYNOPSIS π¦
int cdns_ufs_set_hclkdiv (struct ufs_hba *hba );
π ARGUMENTS π
hbaβ the host controller instance, aka the main character of this whole function π«Ά
β RETURN β
So the tea is: it gives you back zero for success and non-zero for failure. That's it. Zero = slay, anything else = π
π SEE ALSO π
Ok so if you wanna keep the lore going, go read the kernel file ./drivers/ufs/host/cdns-pltfrm.c β it's all right there, no cap π
And then these iconic little siblings, all section (9), all obsessed with each other:
cdns_ufs_get_l4_attr(9)cdns_ufs_set_l4_attr(9)cdns_ufs_hce_enable_notify(9)cdns_ufs_hibern8_notify(9)cdns_ufs_link_startup_notify(9)cdns_ufs_init(9)cdns_ufs_m31_16nm_phy_initialization(9)cdns_ufs_pltfrm_probe(9)cdns_ufs_pltfrm_remove(9)
Go read them. Not me being a good influence for once π
πΈ bye bestie πΈ
This little masterpiece lives in ./drivers/ufs/host, dated October 2026, and it's the cdns_ufs_set_hclkdiv(9) page from the Kernel API Manual β go forth and set those clock dividers, you absolute icon ππ
π¦ 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