[U-Boot] [PATCH] gadget: f_thor: properly enable 3rd endpoint defined by this protocol

Lukasz Majewski l.majewski at samsung.com
Thu May 12 12:25:46 CEST 2016


From: Marek Szyprowski <m.szyprowski at samsung.com>

Signed-off-by: Marek Szyprowski <m.szyprowski at samsung.com>
---
 drivers/usb/gadget/f_thor.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/usb/gadget/f_thor.c b/drivers/usb/gadget/f_thor.c
index a60e948..d49b5ef 100644
--- a/drivers/usb/gadget/f_thor.c
+++ b/drivers/usb/gadget/f_thor.c
@@ -949,6 +949,13 @@ static int thor_eps_setup(struct usb_function *f)
 	dev->out_req = req;
 	/* ACM control EP */
 	ep = dev->int_ep;
+	d = ep_desc(gadget, &hs_int_desc, &fs_int_desc);
+	debug("(d)bEndpointAddress: 0x%x\n", d->bEndpointAddress);
+
+	result = usb_ep_enable(ep, d);
+	if (result)
+		goto exit;
+
 	ep->driver_data = cdev;	/* claim */
 
  exit:
-- 
2.0.0.rc2



More information about the U-Boot mailing list