From d3d32401605e7fb4957eef4f324a2bd93e9eb624 Mon Sep 17 00:00:00 2001 From: Donald Huang Date: Mon, 25 Jun 2018 17:39:00 +0800 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/1114659 Commit-Ready: Jett Rink Tested-by: Donald Huang Tested-by: Jett Rink Reviewed-by: Jett Rink --- util/iteflash.c | 3 --- 1 file changed, 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) -- cgit v1.2.1