st-touch: Retry reading current firmware version

Reading the current touchpad firmware version is failing on multiple
Eve boards, resulting in non-functional touch after FW update.

This change retries the command that reads the current firmware
version up to 10 times with a 1 second delay between tries.  IMO it
is better to delay the boot than to potentially boot without a good
touchpad firmware.

BUG=b:35774858
TEST=tested on two units that were unable to update their touchpad
firmware at boot and ensured that they did after this change.

Change-Id: If57922cb80623323d51ab000779e45b6bd50df0d
Signed-off-by: Duncan Laurie <dlaurie@google.com>
Reviewed-on: https://chromium-review.googlesource.com/449067
Reviewed-by: Charlie Mooney <charliemooney@chromium.org>
Reviewed-by: Todd Broch <tbroch@chromium.org>
1 file changed
tree: 40e6bdeec7f205803f00995ac9f6628401427160
  1. policies/
  2. scripts/
  3. LICENSE
  4. OWNERS
  5. README