[iot] fastboot:Add 'get_staged' command support
authorHaoran Wang <elven.wang@nxp.com>
Wed, 25 Oct 2017 10:08:42 +0000 (18:08 +0800)
committerLuo Ji <ji.luo@nxp.com>
Thu, 25 Jan 2018 11:38:53 +0000 (19:38 +0800)
commit436dd5700e32d25d2ca6557bd2ef9a5ef73d4648
treef0aabcfb56282c621bf064d1c0686d559a397cd0
parentcbd1a1d75ea16fea00a40227720823e320fc21ea
[iot] fastboot:Add 'get_staged' command support

When host end execute "fastboot get_staged [ <outfile> ]"
The staged data from the last command will be output to host end.
If the last command did not result in staged data or the target data
larger than end point buffer size, this command will be fail.

This patch also alloc new buffer that is larger than normal end point's
as the this command need to transfer data by one packet. So that
only the file that less than 128KB will be transfered.

Change-Id: I1dbefa130df9ca348a30d7bc52cb856c052776bf
Signed-off-by: Haoran Wang <elven.wang@nxp.com>
drivers/usb/gadget/f_fastboot.c