usb: gadget: tegra-xudc: Fix removal-time work races
Get series with b4
b4 am [email protected]Versions newest first
- v2 Latest2 patches 0 repliesNew
Changes in v2 from the cover letter
- Split the Fixes tags. Only patch 2/2 is marked # 6.10+.
- Keep each Fixes tag on one line. (Thierry Reding)
- Disable plc_reset_work too. The port-status IRQ can requeue it. (Thierry Reding)
- Unregister the VBUS notifier before draining usb_role_sw_work.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | usb: gadget: tegra-xudc: Unregister VBUS notifierdrivers/ | +6 | 0 replies | |
| 2/2 | usb: gadget: tegra-xudc: Disable reset delayed worksdrivers/ | +2 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/2] usb: gadget: tegra-xudc: Fix removal-time work races
Two producers outlive tegra_xudc_remove(), from different commits. Only the delayed-work fix needs an API added in v6.10.
The devm port-status IRQ queues port_reset_war_work and plc_reset_work. disable_delayed_work_sync() rejects a later queue.
The PHY notifier queues usb_role_sw_work and is not devres-managed. Unregister it, then keep cancel_work_sync(). That applies below v6.10.
Changes in v2:
- Split the Fixes tags. Only patch 2/2 is marked # 6.10+.
- Keep each Fixes tag on one line. (Thierry Reding)
- Disable plc_reset_work too. The port-status IRQ can requeue it. (Thierry Reding)
- Unregister the VBUS notifier before draining usb_role_sw_work.
Myeonghun Pak (2):
usb: gadget: tegra-xudc: Unregister VBUS notifier
usb: gadget: tegra-xudc: Disable reset delayed works
drivers/usb/gadget/udc/tegra-xudc.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
base-commit: 238650ef6c7c7cca08e032527329424c9fbd70e5
Signature · 1 line
2.53.0