summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2020-03-23 22:53:31 -0700
committerYe Li <ye.li@nxp.com>2020-04-23 02:03:53 -0700
commit699e62862c993de73c136afa05efe34db9eb1301 (patch)
treeafe9142945a92e319f9e1029172660c32718c1f8 /include/linux
parent5ebe986fa6cd2ce21091330960b2a24e3ab61566 (diff)
MLK-23574-12 usb: gadget: Add ep_config call back to usb_gadget_ops
Since some new fields in usb_ep structure been moved to usb_ss_ep. The CDNS3 gadget driver should replies on this operation to bind the usb_ss_ep with the endpoint descriptor when function layer uses usb_ep_autoconfig to add endpoint descriptors to gadget. So that CDNS3 driver can know the EP information and configure the EP once the set configuration request is received. Signed-off-by: Sherry Sun <sherry.sun@nxp.com> Signed-off-by: Ye Li <ye.li@nxp.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/usb/gadget.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h
index 06292ddeb6..8d54b91734 100644
--- a/include/linux/usb/gadget.h
+++ b/include/linux/usb/gadget.h
@@ -470,6 +470,9 @@ struct usb_gadget_ops {
struct usb_ep *(*match_ep)(struct usb_gadget *,
struct usb_endpoint_descriptor *,
struct usb_ss_ep_comp_descriptor *);
+ int (*ep_conf)(struct usb_gadget *,
+ struct usb_ep *,
+ struct usb_endpoint_descriptor *);
void (*udc_set_speed)(struct usb_gadget *gadget,
enum usb_device_speed);
};