coreboot/src/ec
Furquan Shaikh 63e424cec2 google/chromeec: Ensure data is ready before reading it
Before reading the data provided by EC to the host, ensure that data
ready flag is set. Otherwise, it could result in reading stale/incorrect
data from the data buffer.

BUG=chrome-os-partner:56395
BRANCH=None
TEST=Verified that lidclose event is read correctly by host on reef.

Change-Id: I88e345d64256af8325b3dbf670467d09f09420f0
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/16258
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2016-08-20 10:48:37 +02:00
..
acpi tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
compal/ene932 kbuild: Allow drivers to fit src/drivers/[X]/[Y]/ scheme 2016-04-19 18:34:18 +02:00
google/chromeec google/chromeec: Ensure data is ready before reading it 2016-08-20 10:48:37 +02:00
kontron/it8516e tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
lenovo ec/lenovo/h8: do not reset volume on s3 wakeup 2016-04-10 18:14:15 +02:00
purism/librem ec: Add support for EC used on Purism Librem laptops 2016-01-21 02:31:34 +01:00
quanta Remove non-ascii & unprintable characters 2016-08-01 21:44:45 +02:00
smsc/mec1308 Workaround for unused variable warning. 2016-02-09 19:58:14 +01:00