]> 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)
commit7e2ee5d6c2d7ff83fb9744910c464957a6dbf74b
tree303d36dde760b4e0f5a982b319e27391a937bc49
parent01da9c8979f3d24bb75ef7080a8d9915e88dff94
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