]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9db431035cea363d92db506c2137ca725aff3c55
tree303d36dde760b4e0f5a982b319e27391a937bc49
parentb1b49cbcf8bd66059ed6f80c573a7ff83991d8ef
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