From 23804fc6e5a1ae4126a81899f1007f2ead4b7bf8 Mon Sep 17 00:00:00 2001 From: Alexandru Gagniuc Date: Fri, 13 Feb 2015 17:10:04 -0600 Subject: [PATCH] drivers/xpowers/axp209: Print a message when probing fails Probing is done by reading the ID register and comparing it to a known value. When there is a mismatch, print an error. Change-Id: I36fb1fe9b56e97660556dcb27be25bfe5129ad73 Signed-off-by: Alexandru Gagniuc Reviewed-on: http://review.coreboot.org/8433 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones --- src/drivers/xpowers/axp209/axp209.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/drivers/xpowers/axp209/axp209.c b/src/drivers/xpowers/axp209/axp209.c index 8aafd48ef0..ae2e3da40e 100644 --- a/src/drivers/xpowers/axp209/axp209.c +++ b/src/drivers/xpowers/axp209/axp209.c @@ -69,8 +69,10 @@ enum cb_err axp209_init(u8 bus) return CB_ERR; /* From U-Boot code : Low 4 bits is chip version */ - if ((id & 0x0f) != 0x1) + if ((id & 0x0f) != 0x1) { + printk(BIOS_ERR, "[axp209] ID 0x%x does not match\n", id); return CB_ERR; + } return CB_SUCCESS; }