From patchwork Wed Oct 19 11:49:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 684074 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3szVp00KGVz9t14 for ; Wed, 19 Oct 2016 22:58:32 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0AE70A75C6; Wed, 19 Oct 2016 13:58:30 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FghexmKpFvpU; Wed, 19 Oct 2016 13:58:29 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C59E3A75CE; Wed, 19 Oct 2016 13:53:51 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 968E3A7576 for ; Wed, 19 Oct 2016 13:52:28 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MoJ_mE5YOGX9 for ; Wed, 19 Oct 2016 13:52:28 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-pf0-f196.google.com (mail-pf0-f196.google.com [209.85.192.196]) by theia.denx.de (Postfix) with ESMTPS id 122C3A75CC for ; Wed, 19 Oct 2016 13:49:55 +0200 (CEST) Received: by mail-pf0-f196.google.com with SMTP id s8so2302832pfj.2 for ; Wed, 19 Oct 2016 04:49:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=MzQKa5Hk58E6WNRhMTsBsQgLG9Eomm0OlX7tdw3JYso=; b=L2US4Cmj8vA1a5UsyVtiHJ6Gf9iPRz0pd203SOx9xyFlf0a3Z74Py0B/GCQaAVX3L0 Xo8PGTNat9ggNu0Nss3M0NlhzDt5Pe3d7E31tA8x2/QgQ8RkHMXM6WLzJzxDVtXJHxxv w7qGxZhM3br9aXI2fF0jJClRAciyexG245JRnbAx23y7ce4DjiwlLh+tuadEvGgZuA3A bY49nbx59dixbi1NzW2z+BsyCtzcOlGdZs1WiVOwT/6a4h+TFGbPV1Hh9wHECAfE+JhF Tbh7U1vU0UyY6z8bz/Q7KBIbceuyBr5LjiUR07BRc2HMP4URdsGAN86sfSy/C9OdnzNn ReaQ== X-Gm-Message-State: AA6/9RkL49GV/QG/bysi8SjuWLonBRgdfyGQA4Y03tBFuLk1zgd7JSUYfM6727tYaAVbSw== X-Received: by 10.99.50.71 with SMTP id y68mr8665573pgy.111.1476877793434; Wed, 19 Oct 2016 04:49:53 -0700 (PDT) Received: from Mr.J ([49.204.230.134]) by smtp.gmail.com with ESMTPSA id h185sm32875303pfe.35.2016.10.19.04.49.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 19 Oct 2016 04:49:52 -0700 (PDT) From: Jagan Teki To: Stefano Babic Date: Wed, 19 Oct 2016 17:19:02 +0530 Message-Id: <1476877743-15269-4-git-send-email-jteki@openedev.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1476877743-15269-1-git-send-email-jteki@openedev.com> References: <1476877743-15269-1-git-send-email-jteki@openedev.com> Cc: Matteo Lisi , u-boot@lists.denx.de Subject: [U-Boot] [PATCH 3/4] i2c: mxc: Make 'no gpio pinctrl state' print as debug X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" 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(-) diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c index 838b344..3429054 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_find_string(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,