fastboot: Increase usb write timeout time

Propagate from (CR)

Previous 5 seconds timeout time is not enough to cover all cases.
Sometimes phone takes longer time to respond.
So prolong this timeout time to 5 minutes.

Picked from http://gerrit.mot.com/508201

Change-Id: Id79274deb32d6926a1134407a8a00e44d59ddb02
Reviewed-on: https://gerrit.mot.com/1013029
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
Signed-off-by: Qing Chang <a21550@motorola.com>
Reviewed-on: https://gerrit.mot.com/1244781
Reviewed-by: Master Yoda
Signed-off-by: Qing Chang <a21550@motorola.com>
Reviewed-on: https://gerrit.mot.com/1335208
Reviewed-by: Dong-Hua Yan <a18317@motorola.com>
Reviewed-on: https://gerrit.mot.com/1945701
Reviewed-by: Vijayakumar Gn <vijaygn@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Ling Jin <lingjin@motorola.com>
Tested-by: Ling Jin <lingjin@motorola.com>
Reviewed-on: https://gerrit.mot.com/2265602
This commit is contained in:
Donghua Yan 2016-06-10 10:16:02 -05:00 committed by Fazil Sheik
parent 98a114c3cf
commit c0652a8837
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ std::unique_ptr<usb_handle> do_usb_open(const wchar_t* interface_name) {
}
ssize_t WindowsUsbTransport::Write(const void* data, size_t len) {
unsigned long time_out = 5000;
unsigned long time_out = 300000;
unsigned long written = 0;
unsigned count = 0;
int ret;