sdhci_arasa...er_sampleclk(9)
π sdhci_arasan_register_sampleclk(9) β¨
okay so bestie, welcome to the Kernel API Manual π β this is the whole entire scoop on sdhci_arasan_register_sampleclk, and honestly? it's giving "small function, big responsibility" and i'm obsessed π«Ά
πΈ NAME πΈ
sdhci_arasan_register_sampleclk β registers the sampleclk so a PHY can actually use it π« like that's literally her job and she ate
β¨ SYNOPSIS β¨
int sdhci_arasan_register_sampleclk (struct sdhci_arasan_data
*sdhci_arasan , struct clk *clk_xin , struct device *dev );
no cap, that's the whole signature β three args, one int coming back at you π₯
π¦ ARGUMENTS π¦
sdhci_arasanβ our private data structure π like, ours, the one we keep for ourselves. main character data.clk_xinβ pointer to the functional clock β° the actual working clock, not a vibe clock.devβ pointer to ourstruct deviceπ that's us. that's our device. hi.
π DESCRIPTION π
so here's the tea β β some PHY devices need to know what the actual card clock is. like they genuinely cannot function without this information, it's giving nosy neighbor but make it hardware π
and the way we handle that? we provide a clock through the common clock framework so they can go query it themselves π no gatekeeping, no "figure it out yourself babe", just a nice little clock handoff π
β RETURN β
0on success π₯³ slay, it worked- an error value on error π not slay, but at least you know
π§ SEE ALSO π§
the kernel file lives at ./drivers/mmc/host/sdhci-of-arasan.c β go read her, she's iconic π and then there's this whole friend group, iykyk:
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_sdcardclk_recalc_rate(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_unregister_sdclk(9)sdhci_arasan_update_support64b(9)sdhci_arasan_register_sdclk(9)
ngl bestie, that's a lot of cross-references β but every single one of them is right there in the original and we do not gatekeep here π
okay that's the whole page!! π sourced from ./drivers/mmc/host, dated October 2026, and the manual is the Kernel API Manual β mwah, hope this helped, go forth and register your sampleclks 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