summaryrefslogtreecommitdiff
path: root/post
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2013-04-15 04:01:07 +0000
committerTom Rini <trini@ti.com>2013-05-01 10:37:35 -0400
commitc55285015ab0c94265665af01c80e60b080f5ac4 (patch)
tree7db03acb9102599aebfa47f6bf8eb4e163647710 /post
parent19fe4b3e3122071fbe6481df05bd819405e1983e (diff)
downloadu-boot-c55285015ab0c94265665af01c80e60b080f5ac4.tar.gz
post: fix I2C POST failure for devices in CONFIG_SYS_POST_I2C_IGNORES
Devices in CONFIG_SYS_POST_I2C_IGNORES list may be absent and the rule is not to report I2C POST failure for devices in this list. Currently this doesn't work since probing for these devices isn't done and thus they are not marked as successfully probed. Ignore optional devices when checking for devices that didn't respond. Signed-off-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'post')
-rw-r--r--post/drivers/i2c.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/post/drivers/i2c.c b/post/drivers/i2c.c
index 4cbd9f3703..c93ae25c4c 100644
--- a/post/drivers/i2c.c
+++ b/post/drivers/i2c.c
@@ -100,6 +100,8 @@ int i2c_post_test (int flags)
for (i = 0; i < sizeof(i2c_addr_list); ++i) {
if (i2c_addr_list[i] == 0xff)
continue;
+ if (i2c_ignore_device(i2c_addr_list[i]))
+ continue;
post_log("I2C: addr %02x did not respond\n", i2c_addr_list[i]);
ret = -1;
}