drivers/spi/spi-pxa2xx-platform.c
Source file repositories/reference/linux-study-clean/drivers/spi/spi-pxa2xx-platform.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/spi/spi-pxa2xx-platform.c- Extension
.c- Size
- 5310 bytes
- Lines
- 231
- 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.
- 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/acpi.hlinux/clk.hlinux/device.hlinux/err.hlinux/init.hlinux/mod_devicetable.hlinux/platform_device.hlinux/pm_runtime.hlinux/property.hlinux/types.hspi-pxa2xx.h
Detected Declarations
function pxa2xx_spi_idma_filterfunction pxa2xx_spi_init_sspfunction pxa2xx_spi_ssp_releasefunction pxa2xx_spi_init_pdatafunction pxa2xx_spi_platform_probefunction pxa2xx_spi_platform_removefunction pxa2xx_spi_initfunction pxa2xx_spi_exitmodule init pxa2xx_spi_init
Annotated Snippet
subsys_initcall(pxa2xx_spi_init);
static void __exit pxa2xx_spi_exit(void)
{
platform_driver_unregister(&driver);
}
module_exit(pxa2xx_spi_exit);
MODULE_AUTHOR("Stephen Street");
MODULE_DESCRIPTION("PXA2xx SSP SPI Controller platform driver");
MODULE_LICENSE("GPL");
MODULE_IMPORT_NS("SPI_PXA2xx");
MODULE_ALIAS("platform:pxa2xx-spi");
MODULE_SOFTDEP("pre: dw_dmac");
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/clk.h`, `linux/device.h`, `linux/err.h`, `linux/init.h`, `linux/mod_devicetable.h`, `linux/platform_device.h`, `linux/pm_runtime.h`.
- Detected declarations: `function pxa2xx_spi_idma_filter`, `function pxa2xx_spi_init_ssp`, `function pxa2xx_spi_ssp_release`, `function pxa2xx_spi_init_pdata`, `function pxa2xx_spi_platform_probe`, `function pxa2xx_spi_platform_remove`, `function pxa2xx_spi_init`, `function pxa2xx_spi_exit`, `module init pxa2xx_spi_init`.
- Atlas domain: Driver Families / drivers/spi.
- Implementation status: integration implementation candidate.
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.