Files
OpenCellular/chip/g
Marius Schilder 1c1af98e40 g: fix flaky timeout check for spi transfer.
Typically this routine runs on low priority hook task.
A pre-emption by a higher priority task might be mistaken for timeout.
Double check the transfer done status after the timeout time has passed.

Also clear the TXDONE status before starting a fresh transaction to make sure
we wait for the current transaction to complete; an errand TXDONE status
at start of the transaction will pre-empt waiting for the current transaction
and return stale data.

BRANCH=none
TEST=mn50 stress test fails within minutes vs. now stable.
	Main test component is higher priority console task
	that does intermittent compute during usb-spi transfers.
Change-Id: Ide4390e42d3957bc45eea8160617a52dd31ed866
Reviewed-on: https://chromium-review.googlesource.com/849662
Commit-Ready: Marius Schilder <mschilder@chromium.org>
Tested-by: Marius Schilder <mschilder@chromium.org>
Reviewed-by: Marius Schilder <mschilder@chromium.org>
Reviewed-by: Nagendra Modadugu <ngm@google.com>
Reviewed-by: Nick Sanders <nsanders@chromium.org>
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
2018-01-04 14:35:21 -08:00
..
2017-12-18 20:32:58 -08:00
2016-04-29 16:07:13 -07: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