From ea9181c76aaf4b07cb3de304ef8d8cdf9879b33e Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Sun, 5 Jan 2014 06:50:10 +0100 Subject: acpi/ec: Add missing delays Without these delays on fast systems like X230 the port is read before it's updated. Change-Id: I3e01fc348cc5170cec108a05095ba301055ed6b0 Signed-off-by: Vladimir Serbinenko Reviewed-on: http://review.coreboot.org/4617 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- src/ec/acpi/ec.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/ec/acpi/ec.c b/src/ec/acpi/ec.c index ab287d6afd..634d2bb941 100644 --- a/src/ec/acpi/ec.c +++ b/src/ec/acpi/ec.c @@ -53,6 +53,8 @@ int send_ec_command(u8 command) // return -1; } + udelay(10); + outb(command, ec_cmd_reg); return 0; } @@ -73,6 +75,8 @@ int send_ec_data(u8 data) // return -1; } + udelay(10); + outb(data, ec_data_reg); return 0; @@ -104,6 +108,8 @@ u8 recv_ec_data(void) // return -1; } + udelay(10); + data = inb(ec_data_reg); printk(BIOS_SPEW, "recv_ec_data: 0x%02x\n", data); -- cgit v1.2.3