cdns_spi_detect_fifo_depth(9)
π cdns_spi_detect_fifo_depth β a Kernel API Manual moment
okay bestie, welcome to the Kernel API Manual entry for cdns_spi_detect_fifo_depth(9). yes that's a whole mouthful, no i will not be shortening it, it's iconic.
β¨ NAME β¨
cdns_spi_detect_fifo_depth β literally just detects the FIFO depth of the hardware π΅οΈββοΈβ¨
π SYNOPSIS π
void cdns_spi_detect_fifo_depth (struct cdns_spi *xspi );
that's it. that's the whole vibe. she takes one pointer and returns nothing (void), because she's a doer, not a returner. periodt.
π¦ ARGUMENTS π¦
xspiβ Pointer to thecdns_spistructure. that's your girl, the whole context, the main character of this function π«Ά
πΈ DESCRIPTION πΈ
okay so here's the tea, and it's giving hardware lore ββ¨
The depth of the TX FIFO is a synthesis configuration parameter of the SPI IP. read that again. synthesis configuration parameter. it's baked in at build time, so you can't just ask the hardware nicely what it is β rude, honestly.
but!! (and this is the clever part, the way that the designers ate π ) the FIFO threshold register is sized so that its maximum value can be the FIFO size - 1. which means β plot twist β that's exactly how you detect the size of the FIFO. iconic behavior. no cap. π₯
π SEE ALSO π
- Kernel file
./drivers/spi/spi-cadence.c struct cdns_spi(9)cdns_spi_init_hw(9)cdns_spi_chipselect(9)cdns_spi_config_clock_mode(9)cdns_spi_config_clock_freq(9)cdns_spi_setup_transfer(9)cdns_spi_process_fifo(9)cdns_spi_irq(9)cdns_transfer_one(9)cdns_prepare_transfer_hardware(9)cdns_unprepare_transfer_hardware(9)cdns_target_abort(9)cdns_spi_probe(9)cdns_spi_remove(9)cdns_spi_suspend(9)cdns_spi_resume(9)cdns_spi_runtime_resume(9)cdns_spi_runtime_suspend(9)
that's the whole squad, go say hi to all of them π
π§ quick reminder bestie: this page lives under ./drivers/spi, dated October 2026. screenshot it, frame it, whatever β it's yours now π
and that's the page!! mwah π source: ./drivers/spi, version vibes: October 2026 β catch you in the kernel tree, bestie, stay slaying πππ
π¦ 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