Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

usb: gadget: udc: update outdated comment for renamed usb_gadget_udc_start()

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>

authored by

Kexin Sun and committed by
Greg Kroah-Hartman
091ef6f5 35a99b69

+3 -2
+3 -2
drivers/usb/gadget/udc/core.c
··· 1266 1266 * @speed: The maximum speed to allowed to run 1267 1267 * 1268 1268 * This call is issued by the UDC Class driver before calling 1269 - * usb_gadget_udc_start() in order to make sure that we don't try to 1270 - * connect on speeds the gadget driver doesn't support. 1269 + * usb_gadget_udc_start_locked() in order to make sure that 1270 + * we don't try to connect on speeds the gadget driver 1271 + * doesn't support. 1271 1272 */ 1272 1273 static inline void usb_gadget_udc_set_speed(struct usb_udc *udc, 1273 1274 enum usb_device_speed speed)