[U-Boot] [PATCH v2 5/9] power: fix pmic command

Piotr Wilczek p.wilczek at samsung.com
Thu Apr 4 13:13:17 CEST 2013


This patch fix automatic i2c bus change when calling subsequent
'pmic' command on diffrent devices connected to separete i2c bus.

Signed-off-by: Piotr Wilczek <p.wilczek at samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park at samsung.com>
CC: Lukasz Majewski <l.majewski at samsung.com>

---
Changes in v2:
- new patch

 drivers/power/power_core.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/power/power_core.c b/drivers/power/power_core.c
index 90df2c5..0b1b725 100644
--- a/drivers/power/power_core.c
+++ b/drivers/power/power_core.c
@@ -164,6 +164,8 @@ int do_pmic(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 	if (!p)
 		return CMD_RET_FAILURE;
 
+	I2C_SET_BUS(p->bus);
+
 	if (strcmp(cmd, "dump") == 0) {
 		if (pmic_dump(p))
 			return CMD_RET_FAILURE;
-- 
1.7.9.5



More information about the U-Boot mailing list