[PATCH] serial_lpuart: make clock failure less verbose

Giulio Benetti giulio.benetti at benettiengineering.com
Fri Jan 31 14:39:47 CET 2020


Some device may enable CONFIG_CLK but not still support this clock in
CC, so better use debug() in place of dev_warn() otherwise a lot of
boards will throw useless dev_warn()s.

Signed-off-by: Giulio Benetti <giulio.benetti at benettiengineering.com>
---
 drivers/serial/serial_lpuart.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/serial/serial_lpuart.c b/drivers/serial/serial_lpuart.c
index ccb3ce6701..1087dc3b65 100644
--- a/drivers/serial/serial_lpuart.c
+++ b/drivers/serial/serial_lpuart.c
@@ -498,7 +498,7 @@ static int lpuart_serial_probe(struct udevice *dev)
 			return ret;
 		}
 	} else {
-		dev_warn(dev, "Failed to get per clk: %d\n",  ret);
+		debug("%s: Failed to get per clk: %d\n", __func__, ret);
 	}
 #endif
 
-- 
2.20.1



More information about the U-Boot mailing list