fastbootd: reduce USB buffer size to 16K

Some USB controllers can only support transfers upto 16K.

Bug: 133208811
Test: fastboot flashall
Change-Id: Ic025bdd8e7a6cf2634fc24524fd189e0cc9efbb5
Merged-In: Ic025bdd8e7a6cf2634fc24524fd189e0cc9efbb5
(cherry picked from commit d747dba9c0)
This commit is contained in:
Hridya Valsaraju 2019-05-21 13:03:24 -07:00
parent 28904625b8
commit 4472fdb4d0

View file

@ -33,7 +33,7 @@ constexpr int kMaxPacketSizeHs = 512;
constexpr int kMaxPacketsizeSs = 1024; constexpr int kMaxPacketsizeSs = 1024;
constexpr size_t kFbFfsNumBufs = 16; constexpr size_t kFbFfsNumBufs = 16;
constexpr size_t kFbFfsBufSize = 32768; constexpr size_t kFbFfsBufSize = 16384;
constexpr const char* kUsbFfsFastbootEp0 = "/dev/usb-ffs/fastboot/ep0"; constexpr const char* kUsbFfsFastbootEp0 = "/dev/usb-ffs/fastboot/ep0";
constexpr const char* kUsbFfsFastbootOut = "/dev/usb-ffs/fastboot/ep1"; constexpr const char* kUsbFfsFastbootOut = "/dev/usb-ffs/fastboot/ep1";