f_sdp: Add EP1_OUT as default data receive pipe in sdp
authorSherry Sun <sherry.sun@nxp.com>
Tue, 18 Aug 2020 10:16:48 +0000 (18:16 +0800)
committerMarek Vasut <marex@denx.de>
Tue, 1 Sep 2020 12:47:43 +0000 (14:47 +0200)
commit9e06c5c55a60bea001c82ad32f48177eddda0d38
treee231b24fbf1af825c140da47df8fb5bba8c8c648
parent27c803848b29ec89e4d1561a509b6bcd95c896b7
f_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>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/usb/gadget/f_sdp.c