drivers/usb/dwc3/ulpi.c
Source file repositories/reference/linux-study-clean/drivers/usb/dwc3/ulpi.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/usb/dwc3/ulpi.c- Extension
.c- Size
- 2742 bytes
- Lines
- 130
- Domain
- Driver Families
- Bucket
- drivers/usb
- Inferred role
- Driver Families: implementation source
- Status
- source 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/delay.hlinux/time64.hlinux/ulpi/regs.hlinux/ulpi/driver.hcore.hio.h
Detected Declarations
function Copyrightfunction dwc3_ulpi_readfunction dwc3_ulpi_writefunction dwc3_ulpi_detect_configfunction dwc3_ulpi_initfunction dwc3_ulpi_exit
Annotated Snippet
switch (ulpi->id.product) {
case 0x0009:
/* Microchip USB3340 ULPI PHY */
dwc->enable_usb2_transceiver_delay = true;
break;
default:
break;
}
break;
default:
break;
}
}
int dwc3_ulpi_init(struct dwc3 *dwc)
{
/* Register the interface */
dwc->ulpi = ulpi_register_interface(dwc->dev, &dwc3_ulpi_ops);
if (IS_ERR(dwc->ulpi)) {
dev_err(dwc->dev, "failed to register ULPI interface");
return PTR_ERR(dwc->ulpi);
}
dwc3_ulpi_detect_config(dwc);
return 0;
}
void dwc3_ulpi_exit(struct dwc3 *dwc)
{
if (dwc->ulpi) {
ulpi_unregister_interface(dwc->ulpi);
dwc->ulpi = NULL;
}
}
Annotation
- Immediate include surface: `linux/delay.h`, `linux/time64.h`, `linux/ulpi/regs.h`, `linux/ulpi/driver.h`, `core.h`, `io.h`.
- Detected declarations: `function Copyright`, `function dwc3_ulpi_read`, `function dwc3_ulpi_write`, `function dwc3_ulpi_detect_config`, `function dwc3_ulpi_init`, `function dwc3_ulpi_exit`.
- Atlas domain: Driver Families / drivers/usb.
- Implementation status: source 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.