davinci_spi_probe(9)
πΈ NAME πΈ
okay bestie, this is davinci_spi_probe(9) from the Kernel API Manual, and it's literally the probe function for the SPI Master Controller. That's the whole name. Iconic. π
β¨ SYNOPSIS β¨
int davinci_spi_probe (struct platform_device *pdev );
π ARGUMENTS π
pdevβ theplatform_devicestructure that contains theplateformspecific data. (Yes,plateformβ that's the spelling in the source, bestie ππ)
π DESCRIPTION π
According to Linux Device Model, this function will be invoked by Linux with a platform_device struct that contains the device specific info. So like, Linux hands it the device tea. π«
Then it gets to work: this function will map the SPI controller's memory, register IRQ, reset the SPI controller, and set its registers to default value. All the setup vibes. β¨
It will also invoke spi_bitbang_start to create work queue so that client driver can register transfer method to work queue. That's the whole flow, no cap. π₯
π¦ SEE ALSO π¦
- Kernel file
./drivers/spi/spi-davinci.cstructdavinci_spi_platform_data(9) struct davinci_spi_config(9)davinci_spi_get_prescale(9)davinci_spi_setup_transfer(9)davinci_spi_setup(9)davinci_spi_process_events(9)davinci_spi_bufs(9)dummy_thread_fn(9)davinci_spi_irq(9)spi_davinci_get_pdata(9)davinci_spi_remove(9)
xoxo, the crew behind ./drivers/spi π β October 2026 edition, davinci_spi_probe(9) and all ππ
π¦ 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