mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-29 01:50:53 +00:00
b41a0632db0abd010331b507cba4b472dd8e2fd8
CL adds sleep to USB-PD flashing loop in ectool. Real problem is likely busy waiting within the host command master in the EC which causes it to starve other lower priority tasks there. Additionally, 1. Sleep 100ms after reboot to attempt to avoid colliding with other USB-PD traffic communication that happens when accessories boot. 2. Sleep 100ms after last flash write prior to reboot as there's some race between finalizing flash write. Workaround should be removed once we've identified root cause. Signed-off-by: Todd Broch <tbroch@chromium.org> BRANCH=samus BUG=chrome-os-partner:33905 TEST=manual, 1. attach zinger to port 1 of samus 2. create ec.RW.bin for zinger and copy to samus 3. update RW fw on zinger via: ectool --name cros_pd flash_pd 1 1 ec.RW.bin Result: - No longer see watchdog fire on samus EC - See successful update of RW fw on zinger. Takes ~15secs. Change-Id: If617cbf1c25ee92de94bdb312ec822af2a688640 Reviewed-on: https://chromium-review.googlesource.com/230845 Reviewed-by: Todd Broch <tbroch@chromium.org> Commit-Queue: Todd Broch <tbroch@chromium.org> Tested-by: Todd Broch <tbroch@chromium.org>
For an overview of the Embedded Controller firmware, refer to http://www.chromium.org/chromium-os/2014-firmware-summit
Description
Languages
C
64.7%
Lasso
20.7%
ASL
3.6%
JavaScript
3.2%
C#
2.9%
Other
4.6%