drivers/mfd/intel-lpss.c
Source file repositories/reference/linux-study-clean/drivers/mfd/intel-lpss.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/mfd/intel-lpss.c- Extension
.c- Size
- 14119 bytes
- Lines
- 567
- 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.
- 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/array_size.hlinux/bits.hlinux/clkdev.hlinux/clk.hlinux/clk-provider.hlinux/debugfs.hlinux/device.hlinux/err.hlinux/gfp_types.hlinux/idr.hlinux/io.hlinux/ioport.hlinux/mfd/core.hlinux/module.hlinux/pm.hlinux/pm_qos.hlinux/pm_runtime.hlinux/sprintf.hlinux/types.hlinux/io-64-nonatomic-lo-hi.hlinux/dma/idma64.hintel-lpss.h
Detected Declarations
struct dentrystruct intel_lpssenum intel_lpss_dev_typefunction intel_lpss_cache_ltrfunction intel_lpss_debugfs_addfunction intel_lpss_debugfs_removefunction intel_lpss_ltr_setfunction intel_lpss_ltr_exposefunction intel_lpss_ltr_hidefunction intel_lpss_assign_devsfunction intel_lpss_has_idmafunction intel_lpss_set_remap_addrfunction intel_lpss_deassert_resetfunction intel_lpss_init_devfunction intel_lpss_unregister_clock_treefunction intel_lpss_register_clock_dividerfunction intel_lpss_register_clockfunction intel_lpss_unregister_clockfunction intel_lpss_probefunction intel_lpss_removefunction resume_lpss_devicefunction intel_lpss_preparefunction intel_lpss_suspendfunction intel_lpss_resumefunction intel_lpss_initfunction intel_lpss_exitmodule init intel_lpss_init
Annotated Snippet
module_init(intel_lpss_init);
static void __exit intel_lpss_exit(void)
{
ida_destroy(&intel_lpss_devid_ida);
debugfs_remove(intel_lpss_debugfs);
}
module_exit(intel_lpss_exit);
MODULE_AUTHOR("Andy Shevchenko <andriy.shevchenko@linux.intel.com>");
MODULE_AUTHOR("Mika Westerberg <mika.westerberg@linux.intel.com>");
MODULE_AUTHOR("Heikki Krogerus <heikki.krogerus@linux.intel.com>");
MODULE_AUTHOR("Jarkko Nikula <jarkko.nikula@linux.intel.com>");
MODULE_DESCRIPTION("Intel LPSS core driver");
MODULE_LICENSE("GPL v2");
/*
* Ensure the DMA driver is loaded before the host controller device appears,
* so that the host controller driver can request its DMA channels as early
* as possible.
*
* If the DMA module is not there that's OK as well.
*/
MODULE_SOFTDEP("pre: platform:" LPSS_IDMA64_DRIVER_NAME);
Annotation
- Immediate include surface: `linux/array_size.h`, `linux/bits.h`, `linux/clkdev.h`, `linux/clk.h`, `linux/clk-provider.h`, `linux/debugfs.h`, `linux/device.h`, `linux/err.h`.
- Detected declarations: `struct dentry`, `struct intel_lpss`, `enum intel_lpss_dev_type`, `function intel_lpss_cache_ltr`, `function intel_lpss_debugfs_add`, `function intel_lpss_debugfs_remove`, `function intel_lpss_ltr_set`, `function intel_lpss_ltr_expose`, `function intel_lpss_ltr_hide`, `function intel_lpss_assign_devs`.
- Atlas domain: Driver Families / drivers/mfd.
- 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.