mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-28 02:35:28 +00:00
The original version of the script worked but as the USB PD protocol SM has been enhanced to handle more complicated scenarios the occurrence of collisions on the baseband comm has grown and script needs to account for that. Script now checks status of ACK from zinger 'DONE 0' and retries two additional times for commands that failed. If those three attempts are unsuccessful script raises exception and quits. Also added some more logging around retries and progress of chunk writes. BRANCH=none BUG=chrome-os-partner:30135 TEST=manual, util/flash_pd.py build/zinger/ec.RW.flat succeeds in programming zinger even in light of some retries. Change-Id: Iaa8a22c2510ea5f4ebd92e1715be5fe062e13c61 Signed-off-by: Todd Broch <tbroch@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/213131 Reviewed-by: Alec Berg <alecaberg@chromium.org>