summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorStephan Gerhold <[email protected]>2025-04-07 16:59:35 +0200
committerMattijs Korpershoek <[email protected]>2025-04-23 09:50:52 +0200
commiteeef1223025c68bd546a1f9411bdcdf518f8cb97 (patch)
tree10c41d172c2132118f4515d312f69b733fbea6c6 /include/linux
parent4446bc331c65d3efb8a9321d6368c61edb56479b (diff)
usb: gadget: f_acm: Claim requested USB endpoints
U-Boot has an older version of the Linux gadget API, where USB endpoints returned by usb_ep_autoconfig() are not automatically claimed. As written in the documentation comment: "To prevent the endpoint from being returned by a later autoconfig call, claim it by assigning ep->driver_data to some non-null value." Right now f_acm doesn't do that, which means that e.g. ep_in and ep_notify may end up being assigned the same endpoint. Surprisingly, the ACM console is still somehow working, but this is not the expected behavior. It will break with a later commit that disallows calling usb_ep_enable() multiple times. Fix this by assigning some data to ep->driver_data, similar to the other gadget drivers. 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