usb: gadget: udc: core: Introduce check_config to verify USB configuration
authorWesley Cheng <wcheng@codeaurora.org>
Sat, 10 Jul 2021 09:13:10 +0000 (02:13 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Jul 2021 07:37:25 +0000 (09:37 +0200)
commitce7d0008c2356626f69f37ef1afce8fbc83fe142
tree303d36dde760b4e0f5a982b319e27391a937bc49
parente73f0f0ee7541171d89f2e2491130c7771ba58d3
usb: gadget: udc: core: Introduce check_config to verify USB configuration

Some UDCs may have constraints on how many high bandwidth endpoints it can
support in a certain configuration.  This API allows for the composite
driver to pass down the total number of endpoints to the UDC so it can verify
it has the required resources to support the configuration.

Signed-off-by: Wesley Cheng <wcheng@codeaurora.org>
Link: https://lore.kernel.org/r/1625908395-5498-2-git-send-email-wcheng@codeaurora.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/core.c
include/linux/usb/gadget.h