]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
usb: gadget: udc: update outdated comment for renamed usb_gadget_udc_start()
authorKexin Sun <kexinsun@smail.nju.edu.cn>
Sat, 21 Mar 2026 11:00:06 +0000 (19:00 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 30 Mar 2026 14:50:09 +0000 (16:50 +0200)
The function usb_gadget_udc_start() was renamed to
usb_gadget_udc_start_locked() by commit 286d9975a838 ("usb: gadget:
udc: core: Prevent soft_connect_store() race").  Update the comment
in usb_gadget_udc_set_speed() accordingly.

Assisted-by: unnamed:deepseek-v3.2 coccinelle
Signed-off-by: Kexin Sun <kexinsun@smail.nju.edu.cn>
Link: https://patch.msgid.link/20260321110006.8484-1-kexinsun@smail.nju.edu.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/core.c

index 08d2a93b3bbad3f4f576e2eb279d1b704355fa6a..e8861eaad90775db183feab2735b9f9413862c59 100644 (file)
@@ -1266,8 +1266,9 @@ static inline void usb_gadget_udc_stop_locked(struct usb_udc *udc)
  * @speed: The maximum speed to allowed to run
  *
  * This call is issued by the UDC Class driver before calling
- * usb_gadget_udc_start() in order to make sure that we don't try to
- * connect on speeds the gadget driver doesn't support.
+ * usb_gadget_udc_start_locked() in order to make sure that
+ * we don't try to connect on speeds the gadget driver
+ * doesn't support.
  */
 static inline void usb_gadget_udc_set_speed(struct usb_udc *udc,
                                            enum usb_device_speed speed)