drivers/pinctrl/spear/pinctrl-plgpio.c
Source file repositories/reference/linux-study-clean/drivers/pinctrl/spear/pinctrl-plgpio.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/pinctrl/spear/pinctrl-plgpio.c- Extension
.c- Size
- 19083 bytes
- Lines
- 743
- Domain
- Driver Families
- Bucket
- drivers/pinctrl
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- 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/clk.hlinux/err.hlinux/gpio/driver.hlinux/io.hlinux/init.hlinux/mfd/syscon.hlinux/of.hlinux/of_platform.hlinux/pinctrl/consumer.hlinux/platform_device.hlinux/pm.hlinux/regmap.hlinux/spinlock.h
Detected Declarations
struct plgpio_regsstruct plgpiofunction is_plgpio_setfunction plgpio_reg_setfunction plgpio_reg_resetfunction plgpio_direction_inputfunction plgpio_direction_outputfunction plgpio_get_valuefunction plgpio_set_valuefunction plgpio_requestfunction plgpio_freefunction plgpio_irq_disablefunction plgpio_irq_enablefunction plgpio_irq_set_typefunction plgpio_irq_handlerfunction for_each_set_bitfunction spear310_p2ofunction spear310_o2pfunction plgpio_probe_dtfunction plgpio_probefunction plgpio_suspendfunction plgpio_resumefunction plgpio_initmodule init plgpio_init
Annotated Snippet
subsys_initcall(plgpio_init);
Annotation
- Immediate include surface: `linux/clk.h`, `linux/err.h`, `linux/gpio/driver.h`, `linux/io.h`, `linux/init.h`, `linux/mfd/syscon.h`, `linux/of.h`, `linux/of_platform.h`.
- Detected declarations: `struct plgpio_regs`, `struct plgpio`, `function is_plgpio_set`, `function plgpio_reg_set`, `function plgpio_reg_reset`, `function plgpio_direction_input`, `function plgpio_direction_output`, `function plgpio_get_value`, `function plgpio_set_value`, `function plgpio_request`.
- Atlas domain: Driver Families / drivers/pinctrl.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.