diff options
author | Badhri Jagan Sridharan <badhri@google.com> | 2014-12-04 22:38:14 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-12-04 22:38:14 +0000 |
commit | ad32ebecc9a0d781f66f39f467be0b30cc05f65b (patch) | |
tree | 38cab050afe84b04f6a3a3bf41dbe3ac78f3303f /fastboot | |
parent | caaaa278651590bb838e4bb550303771a167eaaf (diff) | |
parent | 971336213a32e5f3841bc22413632e0108f1c9e2 (diff) | |
download | system_core-ad32ebecc9a0d781f66f39f467be0b30cc05f65b.zip system_core-ad32ebecc9a0d781f66f39f467be0b30cc05f65b.tar.gz system_core-ad32ebecc9a0d781f66f39f467be0b30cc05f65b.tar.bz2 |
am 97133621: Merge "system: core: fastboot: Increase USB protocol buffer size to 1024"
* commit '971336213a32e5f3841bc22413632e0108f1c9e2':
system: core: fastboot: Increase USB protocol buffer size to 1024
Diffstat (limited to 'fastboot')
-rw-r--r-- | fastboot/fastboot_protocol.txt | 4 | ||||
-rw-r--r-- | fastboot/protocol.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/fastboot/fastboot_protocol.txt b/fastboot/fastboot_protocol.txt index 2248992..37b1959 100644 --- a/fastboot/fastboot_protocol.txt +++ b/fastboot/fastboot_protocol.txt @@ -12,8 +12,8 @@ Basic Requirements ------------------ * Two bulk endpoints (in, out) are required -* Max packet size must be 64 bytes for full-speed and 512 bytes for - high-speed USB +* Max packet size must be 64 bytes for full-speed, 512 bytes for + high-speed and 1024 bytes for Super Speed USB. * The protocol is entirely host-driven and synchronous (unlike the multi-channel, bi-directional, asynchronous ADB protocol) diff --git a/fastboot/protocol.c b/fastboot/protocol.c index 84e9837..10a84c1 100644 --- a/fastboot/protocol.c +++ b/fastboot/protocol.c @@ -216,7 +216,7 @@ int fb_download_data(usb_handle *usb, const void *data, unsigned size) } } -#define USB_BUF_SIZE 512 +#define USB_BUF_SIZE 1024 static char usb_buf[USB_BUF_SIZE]; static int usb_buf_len; |