]> www.infradead.org Git - users/jedix/linux-maple.git/commit
usb: gadget: core: force synchronous registration
authorJohn Keeping <jkeeping@inmusicbrands.com>
Fri, 13 Sep 2024 10:23:23 +0000 (11:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 13:28:43 +0000 (15:28 +0200)
commitdf9158826b00e53f42c67d62c887a84490d80a0a
treedd3b3c06acb418aa34fb9850a1e2b10c5051f0cc
parent9852d85ec9d492ebef56dc5f229416c925758edc
usb: gadget: core: force synchronous registration

Registering a gadget driver is expected to complete synchronously and
immediately after calling driver_register() this function checks that
the driver has bound so as to return an error.

Set PROBE_FORCE_SYNCHRONOUS to ensure this is the case even when
asynchronous probing is set as the default.

Fixes: fc274c1e99731 ("USB: gadget: Add a new bus for gadgets")
Cc: stable@vger.kernel.org
Signed-off-by: John Keeping <jkeeping@inmusicbrands.com>
Link: https://lore.kernel.org/r/20240913102325.2826261-1-jkeeping@inmusicbrands.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/core.c