mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-29 14:41:26 +01:00
usb: gadget: thor: Claim EP after allocating it in thor gadget
Storing thor device struct as an EP private data. It is necessary for DWC3 operation. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
This commit is contained in:
parent
3621b3b8a7
commit
7704fdbda3
@ -806,6 +806,7 @@ static int thor_func_bind(struct usb_configuration *c, struct usb_function *f)
|
|||||||
}
|
}
|
||||||
|
|
||||||
dev->in_ep = ep; /* Store IN EP for enabling @ setup */
|
dev->in_ep = ep; /* Store IN EP for enabling @ setup */
|
||||||
|
ep->driver_data = dev;
|
||||||
|
|
||||||
ep = usb_ep_autoconfig(gadget, &fs_out_desc);
|
ep = usb_ep_autoconfig(gadget, &fs_out_desc);
|
||||||
if (!ep) {
|
if (!ep) {
|
||||||
@ -818,6 +819,7 @@ static int thor_func_bind(struct usb_configuration *c, struct usb_function *f)
|
|||||||
fs_out_desc.bEndpointAddress;
|
fs_out_desc.bEndpointAddress;
|
||||||
|
|
||||||
dev->out_ep = ep; /* Store OUT EP for enabling @ setup */
|
dev->out_ep = ep; /* Store OUT EP for enabling @ setup */
|
||||||
|
ep->driver_data = dev;
|
||||||
|
|
||||||
ep = usb_ep_autoconfig(gadget, &fs_int_desc);
|
ep = usb_ep_autoconfig(gadget, &fs_int_desc);
|
||||||
if (!ep) {
|
if (!ep) {
|
||||||
@ -826,6 +828,7 @@ static int thor_func_bind(struct usb_configuration *c, struct usb_function *f)
|
|||||||
}
|
}
|
||||||
|
|
||||||
dev->int_ep = ep;
|
dev->int_ep = ep;
|
||||||
|
ep->driver_data = dev;
|
||||||
|
|
||||||
if (gadget_is_dualspeed(gadget)) {
|
if (gadget_is_dualspeed(gadget)) {
|
||||||
hs_int_desc.bEndpointAddress =
|
hs_int_desc.bEndpointAddress =
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user