forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/drivers/usb/gadget/function/f_fs.c
....@@ -3623,6 +3623,7 @@
36233623 /* Drain any pending AIO completions */
36243624 drain_workqueue(ffs->io_completion_wq);
36253625
3626
+ ffs_event_add(ffs, FUNCTIONFS_UNBIND);
36263627 if (!--opts->refcnt)
36273628 functionfs_unbind(ffs);
36283629
....@@ -3647,7 +3648,6 @@
36473648 func->function.ssp_descriptors = NULL;
36483649 func->interfaces_nums = NULL;
36493650
3650
- ffs_event_add(ffs, FUNCTIONFS_UNBIND);
36513651 }
36523652
36533653 static struct usb_function *ffs_alloc(struct usb_function_instance *fi)