From patchwork Fri Apr 17 00:10:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 237844 List-Id: U-Boot discussion From: festevam at gmail.com (Fabio Estevam) Date: Thu, 16 Apr 2020 21:10:45 -0300 Subject: [PATCH 2/5] pmic: pfuze100: Change error message level to debug In-Reply-To: <20200417001048.11300-1-festevam@gmail.com> References: <20200417001048.11300-1-festevam@gmail.com> Message-ID: <20200417001048.11300-2-festevam@gmail.com> On systems that can run on multiple board variants, such as wandboard, which versions with and without the PMIC populated, it is not useful to get PMIC error on systems that do not have the PMIC populated. Change error message level to debug instead. Signed-off-by: Fabio Estevam --- drivers/power/pmic/pfuze100.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/pmic/pfuze100.c b/drivers/power/pmic/pfuze100.c index 6cf5f35f0f..db630f3ad0 100644 --- a/drivers/power/pmic/pfuze100.c +++ b/drivers/power/pmic/pfuze100.c @@ -41,7 +41,7 @@ static int pfuze100_write(struct udevice *dev, uint reg, const uint8_t *buff, static int pfuze100_read(struct udevice *dev, uint reg, uint8_t *buff, int len) { if (dm_i2c_read(dev, reg, buff, len)) { - pr_err("read error from device: %p register: %#x!\n", dev, reg); + debug("read error from device: %p register: %#x!\n", dev, reg); return -EIO; }