stm32h7_spi_disable(9)
π stm32h7_spi_disable β from the Kernel API Manual, bestie
okay so picture this: you're deep in the kernel, the SPI controller is doing its thing, and you need it to stop doing its thing. That's this function. It's giving "turn the lights off on your way out" energy, and honestly? Iconic. π
β¨ NAME β¨
stm32h7_spi_disable β disable the SPI controller. That's it, that's the whole vibe. No cap.
πΈ SYNOPSIS πΈ
void stm32h7_spi_disable (struct stm32_spi *spi );
literally one call. no return value. no drama. π
π¦ ARGUMENTS π¦
spiβ a pointer to the spi controller data structure π«Ά. Like, the actual SPI thing you're about to shut down. Hand it over and let it cook.
β DESCRIPTION β
So here's the tea β: the RX-Fifo gets flushed when the SPI controller is disabled. That's the whole description, bestie β short, sweet, and honestly a little ominous if you were emotionally attached to whatever was sitting in that fifo. π It's gone. Flushed. Bye. π
fr fr though β if you had data chilling in the RX-Fifo, disabling the controller is gonna yeet it. Just so you know. π
π SEE ALSO π
the whole extended friend group shows up here, no one left out, not a single one, we love a complete roster π β and it all lives in the Kernel file ./drivers/spi/spi-stm32.c:
struct stm32_spi_reg(9)struct stm32_spi_regspec(9)struct stm32_spi_cfg(9)struct stm32_spi(9)stm32h7_spi_get_fifo_size(9)stm32f4_spi_get_bpw_mask(9)stm32f7_spi_get_bpw_mask(9)stm32h7_spi_get_bpw_mask(9)stm32mp25_spi_get_bpw_mask(9)stm32_spi_prepare_mbr(9)stm32h7_spi_prepare_fthlv(9)stm32f4_spi_write_tx(9)stm32f7_spi_write_tx(9)stm32h7_spi_write_txfifo(9)stm32f4_spi_read_rx(9)stm32f7_spi_read_rx(9)stm32h7_spi_read_rxfifo(9)stm32_spi_enable(9)stm32fx_spi_disable(9)stm32_spi_can_dma(9)stm32fx_spi_irq_event(9)stm32fx_spi_irq_thread(9)stm32h7_spi_irq_thread(9)stm32_spi_prepare_msg(9)stm32fx_spi_dma_tx_cb(9)stm32_spi_dma_rx_cb(9)stm32_spi_dma_config(9)stm32fx_spi_transfer_one_irq(9)stm32h7_spi_transfer_one_poll(9)stm32h7_spi_transfer_one_irq(9)stm32fx_spi_transfer_one_dma_start(9)stm32f7_spi_transfer_one_dma_start(9)stm32h7_spi_transfer_one_dma_start(9)stm32_spi_prepare_rx_dma_mdma_chaining(9)stm32_spi_transfer_one_dma(9)stm32f4_spi_set_bpw(9)stm32f7_spi_set_bpw(9)stm32h7_spi_set_bpw(9)stm32_spi_set_mbr(9)stm32_spi_communication_type(9)stm32fx_spi_set_mode(9)stm32h7_spi_set_mode(9)stm32h7_spi_data_idleness(9)stm32h7_spi_number_of_data(9)stm32_spi_transfer_one_setup(9)stm32_spi_can_poll(9)stm32_spi_transfer_one(9)stm32_spi_unprepare_msg(9)stm32fx_spi_config(9)stm32h7_spi_config(9)
like, that's the entire squad. main character energy across the board. π
okay and finally, the official receipts π§Ύ β this page comes from ./drivers/spi and it's dated October 2026. slay. go disable some controllers, bestie, and remember: the fifo was never yours to keep. ππ§β¨
π¦ 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