drivers/mfd/tc3589x.c
Source file repositories/reference/linux-study-clean/drivers/mfd/tc3589x.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/mfd/tc3589x.c- Extension
.c- Size
- 11983 bytes
- Lines
- 505
- 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/module.hlinux/interrupt.hlinux/irq.hlinux/irqdomain.hlinux/slab.hlinux/i2c.hlinux/of.hlinux/of_device.hlinux/mfd/core.hlinux/mfd/tc3589x.hlinux/err.h
Detected Declarations
enum tc3589x_versionfunction tc3589x_reg_readfunction tc3589x_reg_writefunction tc3589x_block_readfunction tc3589x_block_writefunction tc3589x_set_bitsfunction tc3589x_irqfunction tc3589x_irq_mapfunction tc3589x_irq_unmapfunction tc3589x_irq_initfunction tc3589x_chip_initfunction tc3589x_device_initfunction tc3589x_of_probefunction for_each_child_of_nodefunction tc3589x_probefunction tc3589x_removefunction tc3589x_suspendfunction tc3589x_resumefunction tc3589x_initfunction tc3589x_exitmodule init tc3589x_initexport tc3589x_reg_readexport tc3589x_reg_writeexport tc3589x_block_readexport tc3589x_block_writeexport tc3589x_set_bits
Annotated Snippet
subsys_initcall(tc3589x_init);
static void __exit tc3589x_exit(void)
{
i2c_del_driver(&tc3589x_driver);
}
module_exit(tc3589x_exit);
MODULE_DESCRIPTION("TC3589x MFD core driver");
MODULE_AUTHOR("Hanumath Prasad, Rabin Vincent");
Annotation
- Immediate include surface: `linux/module.h`, `linux/interrupt.h`, `linux/irq.h`, `linux/irqdomain.h`, `linux/slab.h`, `linux/i2c.h`, `linux/of.h`, `linux/of_device.h`.
- Detected declarations: `enum tc3589x_version`, `function tc3589x_reg_read`, `function tc3589x_reg_write`, `function tc3589x_block_read`, `function tc3589x_block_write`, `function tc3589x_set_bits`, `function tc3589x_irq`, `function tc3589x_irq_map`, `function tc3589x_irq_unmap`, `function tc3589x_irq_init`.
- 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.