MLK-22577-1: sdp: Add EP1_OUT as default data receive pipe in sdp
authorSherry Sun <sherry.sun@nxp.com>
Mon, 9 Sep 2019 21:13:40 +0000 (17:13 -0400)
committerYe Li <ye.li@nxp.com>
Sun, 29 Sep 2019 08:32:53 +0000 (01:32 -0700)
commit1372754979a765f78da04a14982190b10f1cbc76
treea610a1bac6878ba907568a03ee65855d8888b2ed
parentc20975c4b5d1a722c9242c14f89420e704545759
MLK-22577-1: sdp: Add EP1_OUT as default data receive pipe in sdp

EP0 has been used to transfer file data in sdp before, but the max
packetsize of ep0 is 64 bytes. So in order to improve the file transfer
speed, here add the EP1_OUT interrupt endpoint which max packetsize is
set to 1024 byte.

After testing, it turns out that using ep1out is twice as fast as using
ep0 while receiving data in sdp.

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 22614e317b7fdf4a716f2e5bde876649414ffd6c)
drivers/usb/gadget/f_sdp.c