Re: [PATCH 2/4] usb: gadget: f_midi: defaults buflen sizes to 512
From: Felipe Ferreri Tonello
Date: Thu Aug 11 2016 - 04:35:32 EST
Hi Balbi,
On 10/08/16 12:25, Felipe Balbi wrote:
>
> Hi,
>
> "Felipe F. Tonello" <eu@xxxxxxxxxxxxxxxxx> writes:
>> 512 is the value used by wMaxPacketSize, as specified by the USB Spec. This
>
> this is only true for HS :-) FS and SS use different sizes. Do you want
> to use 1024 (SS maxp) by default instead? Then all speeds will have this
> working out just fine.
That's true, altough I've never seen a FS or SS device with MIDI gadget,
they are all 1.1 or 2.0 max.
Nevertheless, your suggestion really makes sense since it will work in
any situation.
--
Felipe
Attachment:
0x92698E6A.asc
Description: application/pgp-keys
Attachment:
signature.asc
Description: OpenPGP digital signature