usb: gadget: add "maxpacket_limit" field to struct usb_ep
[cascardo/linux.git] / drivers / usb / gadget / pxa25x_udc.c
index 0ac6064..5b4f437 100644 (file)
@@ -1193,6 +1193,7 @@ static void udc_reinit(struct pxa25x_udc *dev)
                ep->stopped = 0;
                INIT_LIST_HEAD (&ep->queue);
                ep->pio_irqs = 0;
+               usb_ep_set_maxpacket_limit(&ep->ep, ep->ep.maxpacket);
        }
 
        /* the rest was statically initialized, and is read-only */