diff options
Diffstat (limited to 'drivers/usb/chipidea/udc.c')
-rw-r--r-- | drivers/usb/chipidea/udc.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c index c7a032a4f0c5..7801a3f8be90 100644 --- a/drivers/usb/chipidea/udc.c +++ b/drivers/usb/chipidea/udc.c | |||
@@ -1455,7 +1455,12 @@ static int init_eps(struct ci13xxx *ci) | |||
1455 | 1455 | ||
1456 | mEp->ep.name = mEp->name; | 1456 | mEp->ep.name = mEp->name; |
1457 | mEp->ep.ops = &usb_ep_ops; | 1457 | mEp->ep.ops = &usb_ep_ops; |
1458 | mEp->ep.maxpacket = CTRL_PAYLOAD_MAX; | 1458 | /* |
1459 | * for ep0: maxP defined in desc, for other | ||
1460 | * eps, maxP is set by epautoconfig() called | ||
1461 | * by gadget layer | ||
1462 | */ | ||
1463 | mEp->ep.maxpacket = (unsigned short)~0; | ||
1459 | 1464 | ||
1460 | INIT_LIST_HEAD(&mEp->qh.queue); | 1465 | INIT_LIST_HEAD(&mEp->qh.queue); |
1461 | mEp->qh.ptr = dma_pool_alloc(ci->qh_pool, GFP_KERNEL, | 1466 | mEp->qh.ptr = dma_pool_alloc(ci->qh_pool, GFP_KERNEL, |
@@ -1475,6 +1480,7 @@ static int init_eps(struct ci13xxx *ci) | |||
1475 | else | 1480 | else |
1476 | ci->ep0in = mEp; | 1481 | ci->ep0in = mEp; |
1477 | 1482 | ||
1483 | mEp->ep.maxpacket = CTRL_PAYLOAD_MAX; | ||
1478 | continue; | 1484 | continue; |
1479 | } | 1485 | } |
1480 | 1486 | ||