cdns_spi_chipselect(9)
πΈ cdns_spi_chipselect π
okay so this is a page from the Kernel API Manual bestie, and it's about one (1) tiny function that does one (1) tiny thing, but likeβ¦ it's the thing that makes your SPI chip actually listen, so show some respect β¨
β¨ NAME β¨
cdns_spi_chipselect β literally just selects or deselects the chip select line π that's it. that's the whole job. iconic minimalism.
π¦ SYNOPSIS π¦
void cdns_spi_chipselect (struct spi_device *spi , bool is_high );
no cap, that's the signature. returns nothing (void), takes two things, and then goes and does its little chip-select moment π
πΈ ARGUMENTS πΈ
spiβ a pointer to thespi_devicestructure π«Ά like, the device we're talking to. it's giving "here's my friend's number" energy.is_highβ aboolthat tells us whether we're selecting or deselecting the chip select line: Select is0and deselect is1π yes i know, the naming is a whole vibe check situation (it's named after the line level, not the action, iykyk), but that's the deal β0= select,1= deselect. write it on your hand. periodt.
π SEE ALSO π
the whole friend group π
all in the kernel file ./drivers/spi/spi-cadence.c, and they're all sitting here in the SEE ALSO section looking cute:
struct cdns_spi(9)cdns_spi_init_hw(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_suspend(9)cdns_spi_resume(9)cdns_spi_runtime_resume(9)cdns_spi_runtime_suspend(9)
go read them all, they're literally all in ./drivers/spi and they all ate π₯
real talk though: this function only handles the chip select line itself β everything else about your transfer lives in those other functions above, so don't come for this one when your FIFO is acting up π
and that's the page!! π brought to you by the fine folks over in ./drivers/spi, dated October 2026, all about cdns_spi_chipselect(9) β go select a chip, bestie, slay πβ¨π¦
π¦ 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