usb: gadget: Add ep_config call back to usb_gadget_ops
authorYe Li <ye.li@nxp.com>
Mon, 25 Jan 2021 13:43:44 +0000 (21:43 +0800)
committerMarek Vasut <marex@denx.de>
Sun, 31 Jan 2021 13:08:56 +0000 (14:08 +0100)
commit71a5732b43b9798d4c288f4dd118247ebdf88e9b
treec5b765cc532c437d320847aff8a247312234aa88
parentf2fa49988301965c4f8e7bfdf83145e677b1fbcc
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>
drivers/usb/gadget/epautoconf.c
include/linux/usb/gadget.h