summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2016-11-18 08:58:25 -0600
committerAaron Durbin <adurbin@chromium.org>2016-11-19 16:56:23 +0100
commite35e69537722bad0720a6831adc96b00d29e4a8b (patch)
tree7e5afff0d664822f2f1857cee35bfd12c35e75e1
parentbff8c5ec1977039b7edd1de02768c44a7055fce9 (diff)
downloadcoreboot-e35e69537722bad0720a6831adc96b00d29e4a8b.tar.xz
soc/intel/common/lpss_i2c: correct bus speed error
The wrong value was used for reporting an error when a requested bus speed was made that isn't supported. Use the requested value. Change-Id: I6c92ede3d95590d95a42b40422bab88ea9ae72a1 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/17474 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
-rw-r--r--src/soc/intel/common/lpss_i2c.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/soc/intel/common/lpss_i2c.c b/src/soc/intel/common/lpss_i2c.c
index 025ee25f57..c391ffe4a9 100644
--- a/src/soc/intel/common/lpss_i2c.c
+++ b/src/soc/intel/common/lpss_i2c.c
@@ -532,8 +532,7 @@ static int lpss_i2c_gen_config_rise_fall_time(struct lpss_i2c_regs *regs,
soc = get_soc_descriptor(ic_clk);
if (bus == NULL) {
- printk(BIOS_ERR, "lpss_i2c: invalid bus speed %d\n",
- config->speed);
+ printk(BIOS_ERR, "lpss_i2c: invalid bus speed %d\n", speed);
return -1;
}