From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Tue, 6 Dec 2016 15:08:05 +0100 Subject: [U-Boot] [PATCH v3 12/13] i2c: mxc: Make 'no gpio pinctrl state' print as debug In-Reply-To: <1480978860-4351-13-git-send-email-jagan@openedev.com> References: <1480978860-4351-1-git-send-email-jagan@openedev.com> <1480978860-4351-13-git-send-email-jagan@openedev.com> Message-ID: <5846C645.5010807@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Jagan, Am 06.12.2016 um 00:00 schrieb Jagan Teki: > From: Jagan Teki > > Some I2C bus devicetree nodes, doesn't require to have > gpio pinctrl so replace the dev_info to debug so the > print never comes on the console and for bus that uses > gpio pinctrl anyway have dev_err. > > Before: > ------ > U-Boot> i2c dev 1 > Setting bus to 1 > i2c bus 1 at 0x21a4000, no gpio pinctrl state. > > After: > ------ > U-Boot> i2c dev 1 > Setting bus to 1 > > Cc: Simon Glass > Cc: Heiko Schocher > Cc: Peng Fan > Cc: Michael Trimarchi > Signed-off-by: Jagan Teki > --- > drivers/i2c/mxc_i2c.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Acked-by: Heiko Schocher bye, Heiko > > diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c > index 03a5ce9..94d9027 100644 > --- a/drivers/i2c/mxc_i2c.c > +++ b/drivers/i2c/mxc_i2c.c > @@ -775,7 +775,7 @@ static int mxc_i2c_probe(struct udevice *bus) > */ > ret = fdt_stringlist_search(fdt, node, "pinctrl-names", "gpio"); > if (ret < 0) { > - dev_info(dev, "i2c bus %d at 0x%2lx, no gpio pinctrl state.\n", bus->seq, i2c_bus->base); > + debug("i2c bus %d at 0x%2lx, no gpio pinctrl state.\n", bus->seq, i2c_bus->base); > } else { > ret = gpio_request_by_name_nodev(fdt, node, "scl-gpios", > 0, &i2c_bus->scl_gpio, > -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany