drivers/mfd/tps65217.c
Source file repositories/reference/linux-study-clean/drivers/mfd/tps65217.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/mfd/tps65217.c- Extension
.c- Size
- 9979 bytes
- Lines
- 423
- Domain
- Driver Families
- Bucket
- drivers/mfd
- 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.
- 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/device.hlinux/err.hlinux/init.hlinux/interrupt.hlinux/i2c.hlinux/irq.hlinux/irqdomain.hlinux/kernel.hlinux/module.hlinux/of.hlinux/platform_device.hlinux/regmap.hlinux/slab.hlinux/mfd/core.hlinux/mfd/tps65217.h
Detected Declarations
function tps65217_irq_lockfunction tps65217_irq_sync_unlockfunction tps65217_irq_enablefunction tps65217_irq_disablefunction tps65217_irq_threadfunction tps65217_irq_mapfunction tps65217_irq_initfunction tps65217_reg_readfunction tps65217_reg_writefunction tps65217_update_bitsfunction tps65217_set_bitsfunction tps65217_clear_bitsfunction tps65217_volatile_regfunction tps65217_probefunction tps65217_removefunction tps65217_initfunction tps65217_exitmodule init tps65217_initexport tps65217_reg_readexport tps65217_reg_writeexport tps65217_set_bitsexport tps65217_clear_bits
Annotated Snippet
subsys_initcall(tps65217_init);
static void __exit tps65217_exit(void)
{
i2c_del_driver(&tps65217_driver);
}
module_exit(tps65217_exit);
MODULE_AUTHOR("AnilKumar Ch <anilkumar@ti.com>");
MODULE_DESCRIPTION("TPS65217 chip family multi-function driver");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/device.h`, `linux/err.h`, `linux/init.h`, `linux/interrupt.h`, `linux/i2c.h`, `linux/irq.h`, `linux/irqdomain.h`, `linux/kernel.h`.
- Detected declarations: `function tps65217_irq_lock`, `function tps65217_irq_sync_unlock`, `function tps65217_irq_enable`, `function tps65217_irq_disable`, `function tps65217_irq_thread`, `function tps65217_irq_map`, `function tps65217_irq_init`, `function tps65217_reg_read`, `function tps65217_reg_write`, `function tps65217_update_bits`.
- Atlas domain: Driver Families / drivers/mfd.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
- 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.