summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2018-01-30 14:27:59 -0800
committerchrome-bot <chrome-bot@chromium.org>2018-01-31 13:47:15 -0800
commitcdd2c95284be89c9a7e79a27c35b0e1f1773e27f (patch)
tree550855ff7d76e198bef4954442bf6434f5e1dc1b /Makefile.rules
parent5a910a86be7e8174d81d194a2a6042e3452ccaf8 (diff)
downloadchrome-ec-cdd2c95284be89c9a7e79a27c35b0e1f1773e27f.tar.gz
g: protect flash operations
Flash operations in do_flash_op() involve waiting polling for the chip to complete the operation. If a concurrent operation is started while another operation is in progress, flash gets confused and locks up. Let's add a mutex to ensure that flash operation runs to completion before another operation starts. BRANCH=cr50 BUG=b:67651754 TEST=multiple times ran firmware update while the device was coming up and saving TPM status in NVMEM. Observed no failures. Change-Id: I777a38f8a63cf17d60edb11cc3f916a4ea904741 Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/894180 Reviewed-by: Randall Spangler <rspangler@chromium.org> Reviewed-by: Mary Ruthven <mruthven@chromium.org>
Diffstat (limited to 'Makefile.rules')
0 files changed, 0 insertions, 0 deletions