usb: gadget: pch_udc: order IRQ and descriptor lifetimes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | usb: gadget: pch_udc: release IRQ handlers before DMA cleanupdrivers/ | +16 | 0 replies | |
| 2/4 | usb: gadget: pch_udc: initialize DMA before registering interrupt sourcesdrivers/ | +9 | 0 replies | |
| 3/4 | usb: gadget: pch_udc: track successful EP0 DMA mappingsdrivers/ | +7 | 0 replies | |
| 4/4 | usb: gadget: pch_udc: free the EP0 data descriptor to its owning pooldrivers/ | +8 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/4] usb: gadget: pch_udc: order IRQ and descriptor lifetimes
These fixes are part of our ongoing research while reviewing kernel code.
Apply after the published probe-cleanup and VBUS-work patches:
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/CAGEsz8GQR2vJ8ddedaLg=Yq_RoeTxgoXTQ4-QS8mJpDXNn36qA@mail.gmail.com/
1. Drain works and release IRQ handlers before cleanup; establish a final controller interrupt mask after the PCI handler has finished.
2. Initialize DMA before IRQ registration; enable bus mastering afterwards.
3. Track successful EP0 mappings and return -EIO on mapping failure.
4. Return the EP0 data descriptor to its owning pool.
Compile-tested only.