Skip to content
Snippets Groups Projects
Commit c5528501 authored by Anatolij Gustschin's avatar Anatolij Gustschin Committed by Tom Rini
Browse files

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: default avatarAnatolij Gustschin <agust@denx.de>
parent 19fe4b3e
No related branches found
No related tags found
No related merge requests found
...@@ -100,6 +100,8 @@ int i2c_post_test (int flags) ...@@ -100,6 +100,8 @@ int i2c_post_test (int flags)
for (i = 0; i < sizeof(i2c_addr_list); ++i) { for (i = 0; i < sizeof(i2c_addr_list); ++i) {
if (i2c_addr_list[i] == 0xff) if (i2c_addr_list[i] == 0xff)
continue; continue;
if (i2c_ignore_device(i2c_addr_list[i]))
continue;
post_log("I2C: addr %02x did not respond\n", i2c_addr_list[i]); post_log("I2C: addr %02x did not respond\n", i2c_addr_list[i]);
ret = -1; ret = -1;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment