Skip to content
Snippets Groups Projects
Commit 2da24fe5 authored by Jagan Teki's avatar Jagan Teki Committed by Stefano Babic
Browse files

i2c: mxc: Make 'no gpio pinctrl state' print as debug


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 <sjg@chromium.org>
Cc: Heiko Schocher <hs@denx.de>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: default avatarJagan Teki <jagan@amarulasolutions.com>
Acked-by: default avatarHeiko Schocher <hs@denx.de>
parent 65c92e4f
No related branches found
No related tags found
No related merge requests found
...@@ -775,7 +775,7 @@ static int mxc_i2c_probe(struct udevice *bus) ...@@ -775,7 +775,7 @@ static int mxc_i2c_probe(struct udevice *bus)
*/ */
ret = fdt_stringlist_search(fdt, node, "pinctrl-names", "gpio"); ret = fdt_stringlist_search(fdt, node, "pinctrl-names", "gpio");
if (ret < 0) { 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 { } else {
ret = gpio_request_by_name_nodev(fdt, node, "scl-gpios", ret = gpio_request_by_name_nodev(fdt, node, "scl-gpios",
0, &i2c_bus->scl_gpio, 0, &i2c_bus->scl_gpio,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment