CHROMIUM: cros_ec: Check communication with ec at resume

Send dummy command to EC at resume time, wait for status.
If EC loses that command and return a status for the
pre-suspend command, we will not interpret that status as an
answer for an important command.

BUG=chrome-os-partner:36353
TEST=Dozing Stress test
TEST=Kernel does not believe we have a lightbar on veyron after resume

Change-Id: I21bd6003ce3faeb588078da9ceb70e9ffa7bda15
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Signed-off-by: Alexandru M Stan <amstan@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/254760
Reviewed-by: Eric Caruso <ejcaruso@chromium.org>
1 file changed