From 54f45c684c2daaef92cbe6c4672a7295d0469c56 Mon Sep 17 00:00:00 2001 From: Bill XIE Date: Thu, 26 Oct 2017 11:55:34 +0800 Subject: ec/lenovo/h8: Clear EC output queue before enablement Sometimes (observed on Thinkpad T400s during cold boot) a few (only one observed) garbage bytes may detained in the output queue of EC after power up, and they should be cleared otherwise later communications will be disrupted. Change-Id: Id1733f7350232d0b10ac0d1bc912b62e7fa4da75 Signed-off-by: Bill XIE Reviewed-on: https://review.coreboot.org/22181 Reviewed-by: Arthur Heymans Tested-by: build bot (Jenkins) Reviewed-by: Maximilian Schander Reviewed-by: Paul Menzel Reviewed-by: Patrick Rudolph --- src/ec/lenovo/h8/h8.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ec/lenovo/h8/h8.c b/src/ec/lenovo/h8/h8.c index 882ac0271c..3442f68ff8 100644 --- a/src/ec/lenovo/h8/h8.c +++ b/src/ec/lenovo/h8/h8.c @@ -196,6 +196,7 @@ static void h8_enable(struct device *dev) dev->ops = &h8_dev_ops; + ec_clear_out_queue(); h8_log_ec_version(); /* Always enable I/O range 0x1600-0x160f and thermal management */ -- cgit v1.2.3