sdhci_arasan..._recalc_rate(9)
π sdhci_arasan..._recalc_rate(9) β a Kernel API Manual moment
okay so bestie, welcome to the Kernel API Manual page for sdhci_arasan..._recalc_rate(9). yes the title is truncated with literal dots, no that's not a typo, that's just how the man page generator woke up that day. we move. π«Ά
β¨ NAME β¨
sdhci_arasan_sdcardclk_recalc_rate β literally just returns the card clock rate. that's it. that's the whole job. π
πΈ SYNOPSIS πΈ
unsigned long sdhci_arasan_sdcardclk_recalc_rate (struct clk_hw *hw ,
unsigned long parent_rate );
two args, one return, zero drama. (well, the caller might bring drama, but that's not our problem.) β¨
π¦ ARGUMENTS π¦
hwβ a pointer to the hardware clock structure. just a pointer. it's giving "i know a guy" energy. πparent_rateβ the parent rate, and like, it should be the rate ofclk_xin. read that again: should. the man page said should, not must, and we are not gonna pretend otherwise. π
π DESCRIPTION π
so what does it actually do? it returns the current actual rate of the SD card clock. not the theoretical one, not the one you hoped for in the device tree, the actual one. π
and why do we care? because this rate can be used to communicate with our PHY. that's the whole reason this function exists β the PHY needs to know what the card clock is actually doing. (yes, the original says "out PHY", not "our PHY". we're keeping the typo because it's iconic and also because i do not get to edit source code, i'm just the vibe translator.) π
β RETURN β
returns the card clock rate, as an unsigned long. that's the whole return section. short and slay. π₯
π SEE ALSO π
the friend group. the whole squad. every single one of them, no cap:
- the kernel file
./drivers/mmc/host/sdhci-of-arasan.c struct sdhci_arasan_soc_ctl_field(9)struct sdhci_arasan_soc_ctl_map(9)struct sdhci_arasan_clk_ops(9)struct sdhci_arasan_clk_data(9)struct sdhci_arasan_data(9)sdhci_arasan_syscon_write(9)sdhci_arasan_suspend(9)sdhci_arasan_resume(9)sdhci_arasan_sampleclk_recalc_rate(9)sdhci_zynqmp_sdcardclk_set_phase(9)sdhci_zynqmp_sampleclk_set_phase(9)sdhci_versal_sdcardclk_set_phase(9)sdhci_versal_sampleclk_set_phase(9)sdhci_arasan_update_clockmultiplier(9)sdhci_arasan_update_baseclkfreq(9)arasan_dt_parse_clk_phases(9)sdhci_arasan_register_sdcardclk(9)sdhci_arasan_register_sampleclk(9)sdhci_arasan_unregister_sdclk(9)sdhci_arasan_update_support64b(9)sdhci_arasan_register_sdclk(9)
like i said. the whole squad. π
ngl bestie, this one's a short read β recalc the rate, hand it back, let the PHY know. but you still gotta read the whole squad list, that's the rules. π
and that's the page!! sourced straight from ./drivers/mmc/host, dated October 2026 β so yeah, technically from the future, which is lowkey main character energy. go forth and recalc those rates, bestie. π§πβ¨
π¦ 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