Re: [U-Boot] [PATCH v3 3/4] SDP: fix wrong usb request size and add high speed endpoint descriptor

2019-08-26 Thread Sherry Sun
Hi Lukasz, > > On Thu, 22 Aug 2019 01:46:20 + > Sherry Sun wrote: > > > Because the buffer length of sdp usb request is 65, we have to > > allocate 65 bytes not 64 bytes. Otherwise there is potential buffer > > overflow. > > > > So the wMaxPacketSize of fullspeed can't meet the needs. Add H

Re: [U-Boot] [PATCH v3 3/4] SDP: fix wrong usb request size and add high speed endpoint descriptor

2019-08-26 Thread Lukasz Majewski
On Thu, 22 Aug 2019 01:46:20 + Sherry Sun wrote: > Because the buffer length of sdp usb request is 65, we have to > allocate 65 bytes not 64 bytes. Otherwise there is potential buffer > overflow. > > So the wMaxPacketSize of fullspeed can't meet the needs. Add HS > endpoint descriptor for SD

[U-Boot] [PATCH v3 3/4] SDP: fix wrong usb request size and add high speed endpoint descriptor

2019-08-21 Thread Sherry Sun
Because the buffer length of sdp usb request is 65, we have to allocate 65 bytes not 64 bytes. Otherwise there is potential buffer overflow. So the wMaxPacketSize of fullspeed can't meet the needs. Add HS endpoint descriptor for SDP. Then we can use high speed endpoint, and the SDP device can send