Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ad32ebec authored by Badhri Jagan Sridharan's avatar Badhri Jagan Sridharan Committed by Android Git Automerger
Browse files

am 97133621: Merge "system: core: fastboot: Increase USB protocol buffer size to 1024"

* commit '97133621':
  system: core: fastboot: Increase USB protocol buffer size to 1024
parents caaaa278 97133621
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -12,8 +12,8 @@ Basic Requirements
------------------
------------------


* Two bulk endpoints (in, out) are required
* Two bulk endpoints (in, out) are required
* Max packet size must be 64 bytes for full-speed and 512 bytes for 
* Max packet size must be 64 bytes for full-speed, 512 bytes for
  high-speed USB
  high-speed and 1024 bytes for Super Speed USB.
* The protocol is entirely host-driven and synchronous (unlike the
* The protocol is entirely host-driven and synchronous (unlike the
  multi-channel, bi-directional, asynchronous ADB protocol)
  multi-channel, bi-directional, asynchronous ADB protocol)


+1 −1
Original line number Original line Diff line number Diff line
@@ -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 char usb_buf[USB_BUF_SIZE];
static int usb_buf_len;
static int usb_buf_len;