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, 10 Oct 2019 04:38:36 +0000 (13:38 +0900)
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
drivers/usb/gadget/f_thor.c

index 28f4726..93a01ac 100644 (file)
@@ -1011,6 +1011,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 */
 
        return 0;