[PATCH v3 0/2] usb: gadget: goku_udc: fix probe failure cleanup

From: Cheng Lingfei

Date: Wed Aug 26 2026 - 05:17:48 EST


Move the legacy goku_udc diagnostic file from procfs to a per-device
debugfs entry, then fix the gadget device lifetime when probe fails before
UDC registration. Keeping the interface migration separate from the error
cleanup makes both changes independently reviewable.

The failure was reproduced by syzbot by binding goku_udc to synthetic PCI
devices through new_id. No real TC86C001 hardware was available for testing.

Signed-off-by: Cheng Lingfei <chenglingfei@xxxxxxxxxxx>
---
Changes in v3:
- Split the debugfs migration and probe cleanup into separate patches.
- Link to v2: https://patch.msgid.link/20260826-b4-fix-usb-v2-1-e39f343aee71@xxxxxxxxxxx

Changes in v2:
- Replace legacy procfs with per-device debugfs entries.
- Add Assisted-by: tag as requested.
- Link to v1: https://patch.msgid.link/20260826-b4-fix-usb-v1-1-a090b5b3534c@xxxxxxxxxxx

To: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
To: Felipe Balbi <balbi@xxxxxxxxxx>
To: Peter Chen <peter.chen@xxxxxxx>
To: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>
Cc: linux-usb@xxxxxxxxxxxxxxx
Cc: linux-kernel@xxxxxxxxxxxxxxx

---
Cheng Lingfei (2):
usb: gadget: goku_udc: move debug output to debugfs
usb: gadget: goku_udc: fix kobject warning on probe failure

drivers/usb/gadget/udc/goku_udc.c | 75 ++++++++++++++++++++++++---------------
drivers/usb/gadget/udc/goku_udc.h | 8 +++--
2 files changed, 53 insertions(+), 30 deletions(-)
---
base-commit: 3aa1dcaa4f6f5ae08936491e08bd456f331f2d40
change-id: 20260826-b4-fix-usb-c1a4f0505d8c

Best regards,
--
Cheng Lingfei <chenglingfei@xxxxxxxxxxx>