drivers/spi/spi-fsl-spi.c
Source file repositories/reference/linux-study-clean/drivers/spi/spi-fsl-spi.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/spi/spi-fsl-spi.c- Extension
.c- Size
- 20224 bytes
- Lines
- 803
- Domain
- Driver Families
- Bucket
- drivers/spi
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/delay.hlinux/dma-mapping.hlinux/fsl_devices.hlinux/gpio/consumer.hlinux/interrupt.hlinux/irq.hlinux/kernel.hlinux/mm.hlinux/module.hlinux/mutex.hlinux/of.hlinux/of_address.hlinux/of_irq.hlinux/of_platform.hlinux/platform_device.hlinux/spi/spi.hlinux/spi/spi_bitbang.hlinux/types.hsysdev/fsl_soc.hspi-fsl-lib.hspi-fsl-cpm.hspi-fsl-spi.h
Detected Declarations
struct fsl_spi_match_datafunction fsl_spi_get_typefunction fsl_spi_change_modefunction fsl_spi_qe_cpu_set_shiftsfunction fsl_spi_grlib_set_shiftsfunction mspi_apply_cpu_mode_quirksfunction fsl_spi_setup_transferfunction fsl_spi_cpu_bufsfunction fsl_spi_bufsfunction fsl_spi_prepare_messagefunction fsl_spi_transfer_onefunction fsl_spi_unprepare_messagefunction fsl_spi_setupfunction fsl_spi_cleanupfunction fsl_spi_cpu_irqfunction fsl_spi_irqfunction fsl_spi_grlib_cs_controlfunction fsl_spi_grlib_probefunction fsl_spi_cs_controlfunction of_fsl_spi_probefunction of_fsl_spi_removefunction plat_mpc8xxx_spi_probefunction plat_mpc8xxx_spi_removefunction legacy_driver_registerfunction legacy_driver_unregisterfunction legacy_driver_registerfunction fsl_spi_exitmodule init fsl_spi_init
Annotated Snippet
module_init(fsl_spi_init);
static void __exit fsl_spi_exit(void)
{
platform_driver_unregister(&of_fsl_spi_driver);
legacy_driver_unregister();
}
module_exit(fsl_spi_exit);
MODULE_AUTHOR("Kumar Gala");
MODULE_DESCRIPTION("Simple Freescale SPI Driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/delay.h`, `linux/dma-mapping.h`, `linux/fsl_devices.h`, `linux/gpio/consumer.h`, `linux/interrupt.h`, `linux/irq.h`, `linux/kernel.h`, `linux/mm.h`.
- Detected declarations: `struct fsl_spi_match_data`, `function fsl_spi_get_type`, `function fsl_spi_change_mode`, `function fsl_spi_qe_cpu_set_shifts`, `function fsl_spi_grlib_set_shifts`, `function mspi_apply_cpu_mode_quirks`, `function fsl_spi_setup_transfer`, `function fsl_spi_cpu_bufs`, `function fsl_spi_bufs`, `function fsl_spi_prepare_message`.
- Atlas domain: Driver Families / drivers/spi.
- Implementation status: integration implementation candidate.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.