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 <phcoder@gmail.com>
Reviewed-on: http://review.coreboot.org/4617
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
This commit is contained in:
Vladimir Serbinenko 2014-01-05 06:50:10 +01:00
parent c2ee6801e8
commit ea9181c76a
1 changed files with 6 additions and 0 deletions

View File

@ -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);