From patchwork Tue Mar 24 18:42:42 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Grygorii.Strashko@linaro.org" X-Patchwork-Id: 46278 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0BA4021596 for ; Tue, 24 Mar 2015 18:43:02 +0000 (UTC) Received: by lbvn10 with SMTP id n10sf261371lbv.1 for ; Tue, 24 Mar 2015 11:43:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=9FO3TNFycqNd8OER2Rhm+EmXupvkQr4Fdh/ru+8/4vc=; b=MhZL3bczBvoJPdngWi2vOpqz75vxYQ2jlDZZV2P1ntM7p2X7MskZAchqjoLXb4TMry WX9UyxRbF787WQqu6jGpIQtYRb88Vn2s9r+hW9slNlPIASMEMr29NWFlXpG7xqgVq/AN fAbDi5rGz7mcmfAU9OiIKyhus65cNQ7YF/UK+R7fOwldZju9yfEkbS+7ioUt6QINqm0M Muo7Qxu/PYHYdF24UFAnxMywhik+cb7ZSDFX+oBqom4H0eGCxKa71eNBPH3YpkiWYxgA 4DanJsFzwofNEm4VSu0B+l7pFusJnyuWWPIOxOxnEtVXKfYJdaAx90rXNf3rIVCYK6Ej MwjA== X-Gm-Message-State: ALoCoQmvUzHo+dY0Xdm1+5nwEZ0aZdTSzkxQMu0i6TTjpKyapoe/ymrwABWxLhOJHEK0NCfdDFq6 X-Received: by 10.152.164.171 with SMTP id yr11mr1201854lab.4.1427222580875; Tue, 24 Mar 2015 11:43:00 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.5.2 with SMTP id ci2ls8541lad.38.gmail; Tue, 24 Mar 2015 11:43:00 -0700 (PDT) X-Received: by 10.112.51.138 with SMTP id k10mr4982029lbo.82.1427222580712; Tue, 24 Mar 2015 11:43:00 -0700 (PDT) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com. [209.85.215.50]) by mx.google.com with ESMTPS id oz8si57999lbb.88.2015.03.24.11.43.00 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Mar 2015 11:43:00 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) client-ip=209.85.215.50; Received: by labto5 with SMTP id to5so1508033lab.0 for ; Tue, 24 Mar 2015 11:43:00 -0700 (PDT) X-Received: by 10.152.5.225 with SMTP id v1mr4881122lav.76.1427222580584; Tue, 24 Mar 2015 11:43:00 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.57.201 with SMTP id k9csp1631417lbq; Tue, 24 Mar 2015 11:42:59 -0700 (PDT) X-Received: by 10.68.177.36 with SMTP id cn4mr10183720pbc.114.1427222578722; Tue, 24 Mar 2015 11:42:58 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id zg5si129288pbb.66.2015.03.24.11.42.57; Tue, 24 Mar 2015 11:42:58 -0700 (PDT) Received-SPF: none (google.com: linux-gpio-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932312AbbCXSm5 (ORCPT + 1 other); Tue, 24 Mar 2015 14:42:57 -0400 Received: from mail-la0-f53.google.com ([209.85.215.53]:33173 "EHLO mail-la0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932111AbbCXSm4 (ORCPT ); Tue, 24 Mar 2015 14:42:56 -0400 Received: by labto5 with SMTP id to5so1505778lab.0 for ; Tue, 24 Mar 2015 11:42:54 -0700 (PDT) X-Received: by 10.112.183.134 with SMTP id em6mr4957485lbc.52.1427222574336; Tue, 24 Mar 2015 11:42:54 -0700 (PDT) Received: from localhost ([195.238.92.128]) by mx.google.com with ESMTPSA id i6sm25871lai.1.2015.03.24.11.42.53 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 24 Mar 2015 11:42:53 -0700 (PDT) From: To: linux@arm.linux.org.uk, Linus Walleij , Alexandre Courbot Cc: m-karicheri2@ti.com, ssantosh@kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Grygorii Strashko Subject: [PATCH] gpio: syscon: reduce message level when direction reg offset not in dt Date: Tue, 24 Mar 2015 20:42:42 +0200 Message-Id: <1427222562-2223-1-git-send-email-grygorii.strashko@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <20150324161358.GA694@kahuna> References: <20150324161358.GA694@kahuna> Sender: linux-gpio-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-gpio@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: grygorii.strashko@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Grygorii Strashko Now GPIO syscon driver produces bunch of warnings during the boot of Kesytone 2 SoCs: gpio-syscon soc:keystone_dsp_gpio@02620240: can't read the dir register offset! gpio-syscon soc:keystone_dsp_gpio@2620244: can't read the dir register offset! This message unintentionally was added using dev_err(), but its actual log level is debug, because third cell of "ti,syscon-dev" is optional. Hence change it to dev_dbg() as it should be. This patch fixes commit: 5a3e3f8 ("gpio: syscon: retriave syscon node and regs offsets from dt") Reported-by: Russell King Signed-off-by: Grygorii Strashko --- drivers/gpio/gpio-syscon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-syscon.c b/drivers/gpio/gpio-syscon.c index 257e298..045a952 100644 --- a/drivers/gpio/gpio-syscon.c +++ b/drivers/gpio/gpio-syscon.c @@ -219,7 +219,7 @@ static int syscon_gpio_probe(struct platform_device *pdev) ret = of_property_read_u32_index(np, "gpio,syscon-dev", 2, &priv->dir_reg_offset); if (ret) - dev_err(dev, "can't read the dir register offset!\n"); + dev_dbg(dev, "can't read the dir register offset!\n"); priv->dir_reg_offset <<= 3; }