Skip to contentSkip to conversation

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

PATCH New Lukasz Majewski 1 participant 1 message May 12, 2016 USB

lore
Share & tools
lore
#0 lore raw

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

From: Marek Szyprowski <[email protected]>

---
 drivers/usb/gadget/f_thor.c | 7 +++++++
 1 file changed, 7 insertions(+)
drivers/usb/gadget/f_thor.c +7 -0
index a60e948..d49b5ef 100644
@@ -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:
Signature · 1 line
2.0.0.rc2