gadget: f_thor: properly enable 3rd endpoint defined by this protocol
authorMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 14 Apr 2016 13:02:36 +0000 (15:02 +0200)
committerJaehoon Chung <jh80.chung@samsung.com>
Thu, 6 Apr 2017 06:47:11 +0000 (15:47 +0900)
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
drivers/usb/gadget/f_thor.c

index c3431a5f4e70d2c48fa23930b4c800e1c9ff2011..45162bdd2d75c18d3d6407d1d3bec2970c393b80 100644 (file)
@@ -1019,6 +1019,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: