diff options
author | John Keeping <jkeeping@inmusicbrands.com> | 2024-09-13 13:23:23 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-10-17 16:26:55 +0300 |
commit | bd9269caec16cc228bfb375ea619afcb0e20eaab (patch) | |
tree | 35da2f14009b991d54127043ad35011c77423b2c /drivers/hid | |
parent | db0b620db0256ce88efd65f5d14044b6ab4229b7 (diff) | |
download | linux-bd9269caec16cc228bfb375ea619afcb0e20eaab.tar.xz |
usb: gadget: core: force synchronous registration
commit df9158826b00e53f42c67d62c887a84490d80a0a upstream.
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>
Diffstat (limited to 'drivers/hid')
0 files changed, 0 insertions, 0 deletions