usb: gadget: udc: core: Revise comments for USB ep enable/disable
authorWesley Cheng <quic_wcheng@quicinc.com>
Wed, 27 Oct 2021 20:10:06 +0000 (13:10 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Oct 2021 08:55:55 +0000 (10:55 +0200)
commitb0d5d2a71641bb50cada708cc8fdca946a837e9a
treea5c9f4c362993726181f6d959890b0006c0cdc10
parentc47055e943b0b71c2e719bc2d0b47e00f89becaa
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 <stern@rowland.harvard.edu>
Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
Link: https://lore.kernel.org/r/1635365407-31337-2-git-send-email-quic_wcheng@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/core.c