summaryrefslogtreecommitdiff
path: root/src/apps/http/makefsdata
diff options
context:
space:
mode:
authorMattijs Korpershoek <[email protected]>2026-06-17 13:14:48 +0200
committerMattijs Korpershoek <[email protected]>2026-06-26 11:05:21 +0200
commit1c758ce38caa783c85129753c1ecc9d14a203d8e (patch)
tree0414d099f10324cfafa8cef6002bd165b86fe4be /src/apps/http/makefsdata
parenteec819b98439c50f8ea38ac078ff6a862ea03038 (diff)
usb: gadget: f_mass_storage: Disable eps during disconnect
When trying two ums commands in a row, the second one no longer enumerates properly from the host. This happens since commit 59310d1ecb9f ("usb: gadget: introduce 'enabled' flag in struct usb_ep") causing usb_ep_enable() to return early when ep->enabled is already set. Gadget function drivers (such as f_fastboot or f_mass_storage) implement a disable() function which is called whenever we are done using the gadget. Because f_mass_storage driver does not disable the endpoints, ep->enabled will never be set to false again. This can be reproduced on the STM32MP157C-DK2 or the Khadas VIM3 boards. Add calls to usb_ep_disable() as done in linux [1] to fix this. [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9fff139aeb11186fd8e75860c959c86cb43ab2f6 Fixes: 59310d1ecb9f ("usb: gadget: introduce 'enabled' flag in struct usb_ep") Reported-by: Patrice Chotard <[email protected]> Reviewed-by: Patrice Chotard <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mattijs Korpershoek <[email protected]>
Diffstat (limited to 'src/apps/http/makefsdata')
0 files changed, 0 insertions, 0 deletions