Re: [PATCH] usb: gadget: lpc32xx_udc: Port to new start/stop interface

From: Roland Stigge
Date: Sun Aug 19 2012 - 08:49:22 EST


On 17/08/12 13:39, Sebastian Andrzej Siewior wrote:
>> .lep = 0,
>> .eptype = EP_CTL_TYPE,
>> },
>> .ep[1] = {
>> .ep = {
>> .name = "ep1-int",
>> .ops =&lpc32xx_ep_ops,
>> },
>> .udc =&controller,
>> .maxpacket = 64,
>> .hwep_num_base = 2,
>> .hwep_num = 0, /* 2 or 3, will be set later */
>
> Why not now?

It's assigned dynamically at runtime, depending on RX or TX.

>> .lep = 1,
>> .eptype = EP_INT_TYPE,
>
> Do you have any restrictions on these endpoints? I mean can you pick
> any endpoints for BULK/INT/ISO or have they been pre-defined by HW?

The latter, see LPC32xx user manual, 14.1.2.

Roland
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/