diff mbox

gadget: f_thor: properly enable 3rd endpoint defined by this protocol

Message ID 1463048746-17248-1-git-send-email-l.majewski@samsung.com
State New
Headers show

Commit Message

Lukasz Majewski May 12, 2016, 10:25 a.m. UTC
From: Marek Szyprowski <m.szyprowski@samsung.com>


Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>

---
 drivers/usb/gadget/f_thor.c | 7 +++++++
 1 file changed, 7 insertions(+)

-- 
2.0.0.rc2

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
diff mbox

Patch

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: