Skip to contentSkip to conversation

post: fix I2C POST failure for devices in CONFIG_SYS_POST_I2C_IGNORES

PATCH New Anatolij Gustschin 1 participant 1 message Apr 15, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 post/drivers/i2c.c |    2 ++
 1 file changed, 2 insertions(+)
post/drivers/i2c.c +2 -0
index 4cbd9f3..c93ae25 100644
@@ -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;
 	}
Signature · 1 line
1.7.9.5