diff options
author | Ye Li <ye.li@nxp.com> | 2021-01-25 16:43:44 +0300 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2021-01-31 16:08:56 +0300 |
commit | 71a5732b43b9798d4c288f4dd118247ebdf88e9b (patch) | |
tree | c5b765cc532c437d320847aff8a247312234aa88 /drivers/usb/gadget | |
parent | f2fa49988301965c4f8e7bfdf83145e677b1fbcc (diff) | |
download | u-boot-71a5732b43b9798d4c288f4dd118247ebdf88e9b.tar.xz |
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>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r-- | drivers/usb/gadget/epautoconf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/gadget/epautoconf.c b/drivers/usb/gadget/epautoconf.c index e61fe5d114..3f8842976d 100644 --- a/drivers/usb/gadget/epautoconf.c +++ b/drivers/usb/gadget/epautoconf.c @@ -167,6 +167,10 @@ static int ep_matches( size = 64; put_unaligned(cpu_to_le16(size), &desc->wMaxPacketSize); } + + if (gadget->ops->ep_conf) + return gadget->ops->ep_conf(gadget, ep, desc); + return 1; } |