Skip to content

Commit

Permalink
Merge "system: core: fastboot: Increase USB protocol buffer size to 1…
Browse files Browse the repository at this point in the history
…024"
  • Loading branch information
Badhri Jagan Sridharan authored and Gerrit Code Review committed Dec 4, 2014
2 parents 6855af4 + b211773 commit 9713362
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions fastboot/fastboot_protocol.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion fastboot/protocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 9713362

Please sign in to comment.