[PATCH 11/12] i2c: designware: Use log_debug() for debugging

Simon Glass sjg at chromium.org
Mon Sep 28 02:46:23 CEST 2020


We don't want the debug output to be visible in a normal boot. Silence it.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 drivers/i2c/designware_i2c.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/i2c/designware_i2c.c b/drivers/i2c/designware_i2c.c
index 569a5d39b49..791f32e971c 100644
--- a/drivers/i2c/designware_i2c.c
+++ b/drivers/i2c/designware_i2c.c
@@ -807,8 +807,8 @@ int designware_i2c_probe(struct udevice *bus)
 		return -ENXIO;
 	}
 
-	log_info("I2C bus %s version %#x\n", bus->name,
-		 readl(&priv->regs->comp_version));
+	log_debug("I2C bus %s version %#x\n", bus->name,
+		  readl(&priv->regs->comp_version));
 
 	return __dw_i2c_init(priv->regs, 0, 0);
 }
-- 
2.28.0.681.g6f77f65b4e-goog



More information about the U-Boot mailing list