Hi, On Thu, 03 Sep 2026 04:02:00 +0200, Marek Vasut wrote: > After fsg_unbind() is called on UMS teardown, the fsg_main_thread() > which also invokes handle_exception() is unlikely to run afterward. > Therefore, any exceptions raised in fsg_unbind(), and also exceptions > raised in fsg_common_release() which is called from both fsg_unbind() > and fsg_common_init() fail path, will remain unhandled. > > This leads to a problem where FSG_STATE_TERMINATED/EXIT handling is > not performed on UMS exit and the do_set_interface(..., NULL) which > shuts down endpoints is also not performed, leaving the endpoints > enabled. > > [...]
Thanks, Applied to https://git.u-boot-project.org/u-boot/custodians/u-boot-dfu (u-boot-dfu) [1/1] usb: gadget: f_mass_storage: Synchronously tear interface down https://git.u-boot-project.org/u-boot/custodians/u-boot-dfu/-/commit/b49d784c2346c0cd84330fe11e0a1a5edb674a67 -- Mattijs
