Skip to contentSkip to conversation

wandboard: Do not print error message when PMIC is absent

PATCH New Fabio Estevam 2 participants 2 messages Jan 9, 2020 – Jan 15, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wandboard: Do not print error message when PMIC is absent

Only the wandboard revD1 boards have PMIC, so when running on a wandboard of different revision the following error is always shown on every boot:

pmic_get() ret -19

Instead of printing this error message, move it to debug level instead.

---
 board/wandboard/wandboard.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/wandboard/wandboard.c +1 -1
index f4534dd3dc..5725c5816c 100644
@@ -363,7 +363,7 @@ int power_init_board(void)
 
 	ret = pmic_get("pfuze100 at 8", &dev);
 	if (ret < 0) {
-		printf("pmic_get() ret %d\n", ret);
+		debug("pmic_get() ret %d\n", ret);
 		return 0;
 	}
 
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 wandboard: Do not print error message when PMIC is absent

Quoted 5 lines

Only the wandboard revD1 boards have PMIC, so when running on a wandboard of different revision the following error is always shown on every boot:
pmic_get() ret -19
Instead of printing this error message, move it to debug level instead.

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================