summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorStephan Gerhold <[email protected]>2025-04-07 16:59:36 +0200
committerMattijs Korpershoek <[email protected]>2025-04-23 09:50:52 +0200
commit22b5aad20ae0f17bd9617fb9c10ddb38d2b91920 (patch)
tree797eef571395d0be13830c8ed75d2ca9a577b442 /include/linux
parenteeef1223025c68bd546a1f9411bdcdf518f8cb97 (diff)
usb: gadget: f_acm: Allow restarting ACM console after stopping it
When using IOMUX, the "usbacm" console can be added/removed dynamically from the stdout/stderr/stdin environment variables to allow temporarily starting other USB gadgets (e.g. Fastboot). However, right now acm_stdio_stop() does not completely undo acm_stdio_start(): The USB gadget is unregistered, but as long as dev->priv stays set acm_stdio_start() will never register the USB gadget again. Clear dev->priv after we detach to make sure a start operation after a stop operation registers the gadget again. Fixes: fc2b399ac03b ("usb: gadget: Add CDC ACM function") Signed-off-by: Stephan Gerhold <[email protected]> Reviewed-by: Mattijs Korpershoek <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mattijs Korpershoek <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions