drivers/spi/spi-pl022.c
Source file repositories/reference/linux-study-clean/drivers/spi/spi-pl022.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/spi/spi-pl022.c- Extension
.c- Size
- 60691 bytes
- Lines
- 2191
- 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/init.hlinux/module.hlinux/device.hlinux/ioport.hlinux/errno.hlinux/interrupt.hlinux/spi/spi.hlinux/delay.hlinux/clk.hlinux/err.hlinux/amba/bus.hlinux/amba/pl022.hlinux/io.hlinux/slab.hlinux/dmaengine.hlinux/dma-mapping.hlinux/scatterlist.hlinux/pm_runtime.hlinux/of.hlinux/pinctrl/consumer.hlinux/minmax.h
Detected Declarations
struct vendor_datastruct pl022struct chip_dataenum ssp_readingenum ssp_writingfunction internal_cs_controlfunction pl022_cs_controlfunction flushfunction restore_statefunction load_ssp_default_configfunction readwriterfunction unmap_free_dma_scatterfunction dma_callbackfunction for_each_sgfunction for_each_sgfunction setup_dma_scatterfunction for_each_sgfunction configure_dmafunction pl022_dma_probefunction pl022_dma_autoprobefunction terminate_dmafunction pl022_dma_removefunction configure_dmafunction pl022_dma_autoprobefunction pl022_dma_probefunction terminate_dmafunction set_up_next_transferfunction do_interrupt_dma_transferfunction print_current_statusfunction do_polling_transferfunction pl022_transfer_onefunction pl022_handle_errfunction pl022_unprepare_transfer_hardwarefunction verify_controller_parametersfunction spi_ratefunction calculate_effective_freqfunction ratefunction pl022_setupfunction pl022_cleanupfunction pl022_platform_data_dt_getfunction pl022_probefunction pl022_removefunction pl022_suspendfunction pl022_resumefunction pl022_runtime_suspendfunction pl022_runtime_resumefunction pl022_initfunction pl022_exit
Annotated Snippet
subsys_initcall(pl022_init);
static void __exit pl022_exit(void)
{
amba_driver_unregister(&pl022_driver);
}
module_exit(pl022_exit);
MODULE_AUTHOR("Linus Walleij <linus.walleij@stericsson.com>");
MODULE_DESCRIPTION("PL022 SSP Controller Driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/init.h`, `linux/module.h`, `linux/device.h`, `linux/ioport.h`, `linux/errno.h`, `linux/interrupt.h`, `linux/spi/spi.h`, `linux/delay.h`.
- Detected declarations: `struct vendor_data`, `struct pl022`, `struct chip_data`, `enum ssp_reading`, `enum ssp_writing`, `function internal_cs_control`, `function pl022_cs_control`, `function flush`, `function restore_state`, `function load_ssp_default_config`.
- 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.