Skip to content

Commit b0d5d2a

Browse files
Wesley Chenggregkh
authored andcommitted
usb: gadget: udc: core: Revise comments for USB ep enable/disable
The usb_ep_disable() and usb_ep_enable() routines are being widely used in atomic/interrupt context by function drivers. Hence, the statement about it being able to only run in process context may not be true. Add an explicit comment mentioning that it can be used in atomic context. Acked-by: Alan Stern <[email protected]> Signed-off-by: Wesley Cheng <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent c47055e commit b0d5d2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/usb/gadget/udc/core.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ EXPORT_SYMBOL_GPL(usb_ep_set_maxpacket_limit);
9191
* configurable, with more generic names like "ep-a". (remember that for
9292
* USB, "in" means "towards the USB host".)
9393
*
94-
* This routine must be called in process context.
94+
* This routine may be called in an atomic (interrupt) context.
9595
*
9696
* returns zero, or a negative error code.
9797
*/
@@ -136,7 +136,7 @@ EXPORT_SYMBOL_GPL(usb_ep_enable);
136136
* gadget drivers must call usb_ep_enable() again before queueing
137137
* requests to the endpoint.
138138
*
139-
* This routine must be called in process context.
139+
* This routine may be called in an atomic (interrupt) context.
140140
*
141141
* returns zero, or a negative error code.
142142
*/

0 commit comments

Comments
 (0)