summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Huang <donald.huang@ite.com.tw>2018-06-25 17:39:00 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-06-28 12:47:04 -0700
commitd3d32401605e7fb4957eef4f324a2bd93e9eb624 (patch)
treef2e43c0768658fb24f247f03a4962cb05f31496c
parent013217d91a24a5661d94cc4d5813ad933d2a91bb (diff)
downloadchrome-ec-d3d32401605e7fb4957eef4f324a2bd93e9eb624.tar.gz
iteflash: retry the special waveform sequence without delay
On the special case,if you set the I2C pin as GPIO output low status. It can't flash after booting. You can press Reset Button before flash EC FW to do the operation successfully. BUG=none BRANCH=none TEST=1.Set GLK-RVP-ITE board I2C Channel setting as gpio output low (GPIO PIN A4 A5) 2.Flash FW => Fail Flash FW + Press Reset Button => OK Change-Id: I98d650da0792eeb194f5b155805adca25b876319 Signed-off-by: Donald Huang <donald.huang@ite.com.tw> Reviewed-on: https://chromium-review.googlesource.com/1114659 Commit-Ready: Jett Rink <jettrink@chromium.org> Tested-by: Donald Huang <cguwinds@gmail.com> Tested-by: Jett Rink <jettrink@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org>
-rw-r--r--util/iteflash.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/util/iteflash.c b/util/iteflash.c
index 0b246a56d4..ac55ef3ec7 100644
--- a/util/iteflash.c
+++ b/util/iteflash.c
@@ -583,9 +583,6 @@ static int send_special_waveform(struct ftdi_context *ftdi)
/* If we can talk to chip, then we can break the retry loop */
ret = check_chipid(ftdi);
- if (ret != 0)
- /* Sleep before next attempt */
- sleep(1);
} while (ret != 0);
if (ret)