diff options
| author | HiFiPHile <[email protected]> | 2026-09-01 07:06:47 +0200 |
|---|---|---|
| committer | HiFiPHile <[email protected]> | 2026-09-02 15:21:41 +0200 |
| commit | 3a1dc0dc1f57d45ed75aa9e176425901270e982e (patch) | |
| tree | 00436812c6477719c18f629d298d70995336528c /src/typec/usbc.h | |
| parent | 86893fb2ddcf2a7d263a7fc0ad07783ddb98a21f (diff) | |
DWC2 host: clean up channels on disconnect
A root-port disconnect invalidates every active transfer. Retire channel and FIFO interrupt sources plus host-channel state in the disconnect ISR using the Linux DWC2 cleanup model instead of reinitializing the core and PHY, which can sleep on STM32 HS PHYs.
Flush posted slave requests, request halts for enabled channels, clear channel interrupt and software ownership, and keep endpoint records closing until USBH processes the remove event. Reject transfer submissions to closing endpoints, preserve fast-replug notification, and re-enable the global host-channel interrupt when a new channel is initialized.
Diffstat (limited to 'src/typec/usbc.h')
0 files changed, 0 insertions, 0 deletions
