* [PATCH] wandboard: Do not print error message when PMIC is absent
@ 2020-01-09 1:05 Fabio Estevam
2020-01-15 12:46 ` sbabic at denx.de
0 siblings, 1 reply; 2+ messages in thread
From: Fabio Estevam @ 2020-01-09 1:05 UTC (permalink / raw)
To: u-boot
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.
Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
board/wandboard/wandboard.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/board/wandboard/wandboard.c b/board/wandboard/wandboard.c
index f4534dd3dc..5725c5816c 100644
--- a/board/wandboard/wandboard.c
+++ b/board/wandboard/wandboard.c
@@ -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;
}
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] wandboard: Do not print error message when PMIC is absent
2020-01-09 1:05 [PATCH] wandboard: Do not print error message when PMIC is absent Fabio Estevam
@ 2020-01-15 12:46 ` sbabic at denx.de
0 siblings, 0 replies; 2+ messages in thread
From: sbabic at denx.de @ 2020-01-15 12:46 UTC (permalink / raw)
To: u-boot
> 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.
> Signed-off-by: Fabio Estevam <festevam@gmail.com>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
--
=====================================================================
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
=====================================================================
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-01-15 12:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-09 1:05 [PATCH] wandboard: Do not print error message when PMIC is absent Fabio Estevam
2020-01-15 12:46 ` sbabic at denx.de
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.