Files
OpenCellular/chip/g
Vadim Bendebury cdd2c95284 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>
2018-01-31 13:47:15 -08:00
..
2018-01-31 13:47:15 -08:00
2017-12-18 20:32:58 -08:00
2018-01-31 13:47:15 -08:00
2018-01-31 13:47:15 -08:00
2016-04-29 16:07:13 -07:00
2018-01-31 13:47:15 -08:00
2018-01-03 16:54:35 -08:00
2017-05-16 13:37:03 -07:00
2016-02-01 21:17:22 +00:00
2017-06-16 17:24:28 -07:00
2016-11-04 18:31:44 -07:00
2017-09-27 00:51:09 +00:00
2016-07-13 19:09:19 -07:00
2017-08-01 13:01:41 -07:00
2017-08-01 13:01:41 -07:00
2017-10-18 22:48:41 +00:00
2017-06-16 17:24:28 -07:00
2017-12-18 20:32:58 -08:00
2015-04-02 20:27:46 +00:00
2016-10-22 00:01:02 +00:00
2017-12-18 20:32:58 -08:00
2017-10-06 00:21:29 -07:00
2017-12-18 20:32:58 -08:00
2017-12-18 20:32:58 -08:00
2017-03-16 11:25:50 -07:00
2017-09-22 10:18:50 -07:00