cdns_spi_suspend(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’€ 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 the platform_device structure, 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 ✨

  • 0 on 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:

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