drivers/usb/phy/phy-ab8500-usb.c
Source file repositories/reference/linux-study-clean/drivers/usb/phy/phy-ab8500-usb.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/usb/phy/phy-ab8500-usb.c- Extension
.c- Size
- 26401 bytes
- Lines
- 1012
- 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/module.hlinux/platform_device.hlinux/usb/otg.hlinux/slab.hlinux/notifier.hlinux/interrupt.hlinux/delay.hlinux/clk.hlinux/err.hlinux/mfd/abx500.hlinux/mfd/abx500/ab8500.hlinux/usb/musb-ux500.hlinux/regulator/consumer.hlinux/pinctrl/consumer.h
Detected Declarations
struct ab8500_usbenum ab8500_usb_link_statusenum ab8505_usb_link_statusenum ab8500_usb_modefunction ab8500_usb_wd_workaroundfunction ab8500_usb_regulator_enablefunction ab8500_usb_regulator_disablefunction ab8500_usb_wd_linkstatusfunction ab8500_usb_phy_enablefunction ab8500_usb_phy_disablefunction ab8505_usb_link_status_updatefunction ab8500_usb_link_status_updatefunction abx500_usb_link_status_updatefunction ab8500_usb_disconnect_irqfunction ab8500_usb_link_status_irqfunction ab8500_usb_phy_disable_workfunction ab8500_usb_set_suspendfunction ab8500_usb_set_peripheralfunction ab8500_usb_set_hostfunction ab8500_usb_restart_phyfunction ab8500_usb_regulator_getfunction ab8500_usb_irq_setupfunction ab8500_usb_set_ab8500_tuning_valuesfunction ab8500_usb_set_ab8505_tuning_valuesfunction ab8500_usb_probefunction ab8500_usb_removefunction ab8500_usb_initfunction ab8500_usb_exitmodule init ab8500_usb_init
Annotated Snippet
subsys_initcall(ab8500_usb_init);
static void __exit ab8500_usb_exit(void)
{
platform_driver_unregister(&ab8500_usb_driver);
}
module_exit(ab8500_usb_exit);
MODULE_AUTHOR("ST-Ericsson AB");
MODULE_DESCRIPTION("AB8500 family usb transceiver driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/platform_device.h`, `linux/usb/otg.h`, `linux/slab.h`, `linux/notifier.h`, `linux/interrupt.h`, `linux/delay.h`, `linux/clk.h`.
- Detected declarations: `struct ab8500_usb`, `enum ab8500_usb_link_status`, `enum ab8505_usb_link_status`, `enum ab8500_usb_mode`, `function ab8500_usb_wd_workaround`, `function ab8500_usb_regulator_enable`, `function ab8500_usb_regulator_disable`, `function ab8500_usb_wd_linkstatus`, `function ab8500_usb_phy_enable`, `function ab8500_usb_phy_disable`.
- 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.