drivers/usb/chipidea/core.c
Source file repositories/reference/linux-study-clean/drivers/usb/chipidea/core.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/usb/chipidea/core.c- Extension
.c- Size
- 35556 bytes
- Lines
- 1509
- Domain
- Driver Families
- Bucket
- drivers/usb
- 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/delay.hlinux/device.hlinux/dma-mapping.hlinux/extcon.hlinux/phy/phy.hlinux/platform_device.hlinux/module.hlinux/idr.hlinux/interrupt.hlinux/io.hlinux/kernel.hlinux/slab.hlinux/pm_runtime.hlinux/pm_domain.hlinux/pinctrl/consumer.hlinux/usb/ch9.hlinux/usb/gadget.hlinux/usb/otg.hlinux/usb/chipidea.hlinux/usb/of.hlinux/of.hlinux/regulator/consumer.hlinux/usb/ehci_def.hci.hudc.hbits.hhost.hotg.hotg_fsm.h
Detected Declarations
function hw_alloc_regmapfunction ci_get_revisionfunction hw_read_intr_enablefunction hw_read_intr_statusfunction hw_port_test_setfunction hw_port_test_getfunction hw_wait_phy_stablefunction ci_hdrc_enter_lpm_commonfunction ci_hdrc_enter_lpmfunction hw_device_initfunction hw_phymode_configurefunction _ci_usb_phy_initfunction ci_usb_phy_exitfunction ci_usb_phy_initfunction ci_platform_configurefunction hw_controller_resetfunction hw_device_resetfunction ci_irq_handlerfunction ci_irqfunction ci_cable_notifierfunction ci_usb_role_switch_getfunction ci_usb_role_switch_setfunction ci_get_rolefunction ci_get_platdatafunction ci_extcon_registerfunction ci_power_lost_workfunction ci_hdrc_remove_devicefunction modefunction ci_role_destroyfunction ci_get_otg_capablefunction role_showfunction role_storefunction ci_hdrc_probefunction ci_hdrc_removefunction ci_otg_fsm_suspend_for_srpfunction ci_otg_fsm_wakeup_by_srpfunction ci_controller_suspendfunction interruptfunction ci_controller_resumefunction ci_suspendfunction ci_resumefunction ci_runtime_suspendfunction ci_runtime_resumefunction ci_hdrc_platform_registerfunction ci_hdrc_platform_unregistermodule init ci_hdrc_platform_registerexport hw_phymode_configureexport ci_hdrc_add_device
Annotated Snippet
module_init(ci_hdrc_platform_register);
static void __exit ci_hdrc_platform_unregister(void)
{
platform_driver_unregister(&ci_hdrc_driver);
}
module_exit(ci_hdrc_platform_unregister);
MODULE_ALIAS("platform:ci_hdrc");
MODULE_LICENSE("GPL v2");
MODULE_AUTHOR("David Lopo <dlopo@chipidea.mips.com>");
MODULE_DESCRIPTION("ChipIdea HDRC Driver");
Annotation
- Immediate include surface: `linux/delay.h`, `linux/device.h`, `linux/dma-mapping.h`, `linux/extcon.h`, `linux/phy/phy.h`, `linux/platform_device.h`, `linux/module.h`, `linux/idr.h`.
- Detected declarations: `function hw_alloc_regmap`, `function ci_get_revision`, `function hw_read_intr_enable`, `function hw_read_intr_status`, `function hw_port_test_set`, `function hw_port_test_get`, `function hw_wait_phy_stable`, `function ci_hdrc_enter_lpm_common`, `function ci_hdrc_enter_lpm`, `function hw_device_init`.
- Atlas domain: Driver Families / drivers/usb.
- 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.