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.
TEST=Verified that lidclose event is read correctly by host on reef.
Signed-off-by: Furquan Shaikh <firstname.lastname@example.org>
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <email@example.com>
1 file changed