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