cdns_spi_suspend(9)
π€ cdns_spi_suspend(9) β like, the Kernel API Manual page, bestie
okay so this is cdns_spi_suspend from the Kernel API Manual, and it's giving "time for bed, SPI controller" energy. Let's get into it π
β¨ NAME β¨
cdns_spi_suspend β literally the suspend method for the SPI driver π
β¨ SYNOPSIS β¨
int cdns_spi_suspend (struct device *dev );
that's it, that's the whole vibe π¦
β¨ ARGUMENTS β¨
devβ the address of theplatform_devicestructure, no cap. that's the one thing it wants from you π«Ά
β¨ DESCRIPTION β¨
okay so here's what happens, and you're gonna love it: this function disables the SPI controller and then changes the driver state to "suspend". that's the whole job. it clocks out, it disables the controller, it goes to sleep. main character going to bed energy honestly π΄β¨
β¨ RETURN β¨
0on success πΈ- an error value on error π (that's the whole spectrum, she's not elaborating)
β¨ SEE ALSO β¨
the whole friend group lives in the kernel file ./drivers/spi/spi-cadence.c, and the squad is:
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_spi_detect_fifo_depth(9)cdns_target_abort(9)cdns_spi_probe(9)cdns_spi_remove(9)cdns_spi_resume(9)cdns_spi_runtime_resume(9)cdns_spi_runtime_suspend(9)
bestie, cdns_spi_resume(9) is literally the wake-up call for this exact function. iykyk π
okay that's the page!! sourced from ./drivers/spi, dated October 2026 β mwah, bye, ily, go put that controller to sleep ππβ¨
π¦ 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