ax_spi_irq(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to ax_spi_irq from the Kernel API Manual πŸ˜­πŸ’– this is the little interrupt-service-routine moment, and it’s giving main character energy fr fr.

✨ NAME ✨

ax_spi_irq β€” the interrupt service routine of the SPI controller, periodt πŸ’…

🫢 SYNOPSIS 🫢

irqreturn_t ax_spi_irq (int irq , void *dev_id );

πŸ’… ARGUMENTS πŸ’…

  • irq β€” the IRQ number, iykyk πŸŽ€
  • dev_id β€” a pointer to the xspi structure, bestie 🫢

🌈 DESCRIPTION 🌈

okay so this function handles RX FIFO almost full and Host Transfer Completed interrupts only β€” no extras, no side quests, just those two πŸŽ€.

On the RX FIFO almost full interrupt, it reads the received data from the RX FIFO and fills the TX FIFO if there is any data remaining to be transferred β€” that’s the move 🫢.

On the Host Transfer Completed interrupt, it indicates that the transfer is completed, and the SPI subsystem will clear the MTC bit. slay βœ….

⭐ RETURN ⭐

IRQ_HANDLED when handled; IRQ_NONE otherwise. That’s the whole vibe check, bestie πŸ’–.

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/spi/spi-axiado.c β€” and the whole friend group is here: ax_spi_read(9), ax_spi_write(9), ax_spi_write_b(9), ax_spi_init_hw(9), ax_spi_chipselect(9), ax_spi_config_clock_mode(9), ax_spi_config_clock_freq(9), ax_spi_setup_transfer(9), ax_spi_fill_tx_fifo(9), ax_spi_get_rx_byte_for_irq(9), ax_spi_process_rx_and_finalize(9), ax_transfer_one(9), ax_prepare_transfer_hardware(9), ax_unprepare_transfer_hardware(9), ax_spi_detect_fifo_depth(9), ax_spi_get_rx_byte(9), ax_spi_probe(9), ax_spi_remove(9), ax_spi_suspend(9), ax_spi_resume(9), ax_spi_runtime_resume(9), ax_spi_runtime_suspend(9) 🌸


made with πŸ’– from source ./drivers/spi, dated October 2026 β€” this is ax_spi_irq(9) signing off πŸŽ€βœ¨

πŸ“¦ where this page comes from