drivers/usb/phy/phy-twl6030-usb.c
Source file repositories/reference/linux-study-clean/drivers/usb/phy/phy-twl6030-usb.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/usb/phy/phy-twl6030-usb.c- Extension
.c- Size
- 11556 bytes
- Lines
- 458
- 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/init.hlinux/interrupt.hlinux/platform_device.hlinux/io.hlinux/usb/musb.hlinux/usb/phy_companion.hlinux/phy/omap_usb.hlinux/mfd/twl.hlinux/regulator/consumer.hlinux/err.hlinux/slab.hlinux/delay.hlinux/of.h
Detected Declarations
struct twl6030_usbfunction twl6030_writebfunction twl6030_readbfunction twl6030_start_srpfunction twl6030_usb_ldo_initfunction vbus_showfunction twl6030_usb_irqfunction twl6030_usbotg_irqfunction twl6030_status_workfunction twl6030_enable_irqfunction otg_set_vbus_workfunction twl6030_set_vbusfunction twl6030_usb_probefunction twl6030_usb_removefunction twl6030_usb_initfunction twl6030_usb_exitmodule init twl6030_usb_init
Annotated Snippet
subsys_initcall(twl6030_usb_init);
static void __exit twl6030_usb_exit(void)
{
platform_driver_unregister(&twl6030_usb_driver);
}
module_exit(twl6030_usb_exit);
MODULE_ALIAS("platform:twl6030_usb");
MODULE_AUTHOR("Hema HK <hemahk@ti.com>");
MODULE_DESCRIPTION("TWL6030 USB transceiver driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/init.h`, `linux/interrupt.h`, `linux/platform_device.h`, `linux/io.h`, `linux/usb/musb.h`, `linux/usb/phy_companion.h`, `linux/phy/omap_usb.h`.
- Detected declarations: `struct twl6030_usb`, `function twl6030_writeb`, `function twl6030_readb`, `function twl6030_start_srp`, `function twl6030_usb_ldo_init`, `function vbus_show`, `function twl6030_usb_irq`, `function twl6030_usbotg_irq`, `function twl6030_status_work`, `function twl6030_enable_irq`.
- 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.