[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210122051743.GE31406@jackp-linux.qualcomm.com>
Date: Thu, 21 Jan 2021 21:17:43 -0800
From: Jack Pham <jackp@...eaurora.org>
To: Wesley Cheng <wcheng@...eaurora.org>
Cc: balbi@...nel.org, gregkh@...uxfoundation.org, robh+dt@...nel.org,
agross@...nel.org, bjorn.andersson@...aro.org,
linux-arm-msm@...r.kernel.org, devicetree@...r.kernel.org,
linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org,
peter.chen@....com
Subject: Re: [PATCH v6 1/4] usb: gadget: udc: core: Introduce check_config to
verify USB configuration
Hi Wesley,
On Thu, Jan 21, 2021 at 08:01:37PM -0800, Wesley Cheng wrote:
> 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@...eaurora.org>
> ---
> drivers/usb/gadget/udc/core.c | 9 +++++++++
> include/linux/usb/gadget.h | 2 ++
> 2 files changed, 11 insertions(+)
>
> diff --git a/drivers/usb/gadget/udc/core.c b/drivers/usb/gadget/udc/core.c
> index 4173acd..469962f 100644
> --- a/drivers/usb/gadget/udc/core.c
> +++ b/drivers/usb/gadget/udc/core.c
> @@ -1003,6 +1003,15 @@ int usb_gadget_ep_match_desc(struct usb_gadget *gadget,
> }
> EXPORT_SYMBOL_GPL(usb_gadget_ep_match_desc);
>
> +int usb_gadget_check_config(struct usb_gadget *gadget, unsigned long ep_map)
You should probably add a kernel-doc for this function.
Jack
--
The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
Powered by blists - more mailing lists