All of lore.kernel.org
 help / color / mirror / Atom feed
From: Murali Karicheri <m-karicheri2@ti.com>
To: grygorii.strashko@linaro.org
Cc: linux@arm.linux.org.uk, Linus Walleij <linus.walleij@linaro.org>,
	Alexandre Courbot <gnurou@gmail.com>,
	ssantosh@kernel.org, linux-gpio@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] gpio: syscon: reduce message level when direction reg offset not in dt
Date: Tue, 24 Mar 2015 16:00:13 -0400	[thread overview]
Message-ID: <5511C24D.3080205@ti.com> (raw)
In-Reply-To: <1427222562-2223-1-git-send-email-grygorii.strashko@linaro.org>

On 03/24/2015 02:42 PM, grygorii.strashko@linaro.org wrote:
> From: Grygorii Strashko<grygorii.strashko@linaro.org>
>
> 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<linux@arm.linux.org.uk>
> Signed-off-by: Grygorii Strashko<grygorii.strashko@linaro.org>
> ---
>   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;
>   	}

Tested this on K2HK EVM and found the error log is not appearing any more.

Tested-by: Murali Karicheri <m-karicheri2@ti.com>

-- 
Murali Karicheri
Linux Kernel, Texas Instruments

WARNING: multiple messages have this Message-ID (diff)
From: Murali Karicheri <m-karicheri2@ti.com>
To: <grygorii.strashko@linaro.org>
Cc: <linux@arm.linux.org.uk>,
	Linus Walleij <linus.walleij@linaro.org>,
	Alexandre Courbot <gnurou@gmail.com>, <ssantosh@kernel.org>,
	<linux-gpio@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] gpio: syscon: reduce message level when direction reg offset not in dt
Date: Tue, 24 Mar 2015 16:00:13 -0400	[thread overview]
Message-ID: <5511C24D.3080205@ti.com> (raw)
In-Reply-To: <1427222562-2223-1-git-send-email-grygorii.strashko@linaro.org>

On 03/24/2015 02:42 PM, grygorii.strashko@linaro.org wrote:
> From: Grygorii Strashko<grygorii.strashko@linaro.org>
>
> 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<linux@arm.linux.org.uk>
> Signed-off-by: Grygorii Strashko<grygorii.strashko@linaro.org>
> ---
>   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;
>   	}

Tested this on K2HK EVM and found the error log is not appearing any more.

Tested-by: Murali Karicheri <m-karicheri2@ti.com>

-- 
Murali Karicheri
Linux Kernel, Texas Instruments

  reply	other threads:[~2015-03-24 20:00 UTC|newest]

Thread overview: 125+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-24  0:45 Possible regression in next-20150323 due to "ARM, arm64: kvm: get rid of the bounce page" Simon Horman
2015-03-24  0:45 ` Simon Horman
2015-03-24  0:52 ` Tyler Baker
2015-03-24  0:52   ` Tyler Baker
2015-03-24  0:53   ` Tyler Baker
2015-03-24  0:53     ` Tyler Baker
2015-03-24  8:31 ` Ard Biesheuvel
2015-03-24  8:31   ` Ard Biesheuvel
2015-03-24 16:13   ` Nishanth Menon
2015-03-24 16:13     ` Nishanth Menon
2015-03-24 16:13     ` Nishanth Menon
2015-03-24 18:42     ` [PATCH] gpio: syscon: reduce message level when direction reg offset not in dt grygorii.strashko
2015-03-24 20:00       ` Murali Karicheri [this message]
2015-03-24 20:00         ` Murali Karicheri
2015-03-24 20:52       ` santosh shilimkar
2015-03-27 10:18       ` Linus Walleij
2015-03-26  0:39     ` Possible regression in next-20150323 due to "ARM, arm64: kvm: get rid of the bounce page" Simon Horman
2015-03-26  0:39       ` Simon Horman
2015-03-26  0:39       ` Simon Horman
2015-03-26 13:36       ` Will Deacon
2015-03-26 13:36         ` Will Deacon
2015-03-26 13:36         ` Will Deacon
2015-03-26 15:29         ` Tyler Baker
2015-03-26 15:29           ` Tyler Baker
2015-03-26 15:29           ` Tyler Baker
2015-03-27  0:25           ` Simon Horman
2015-03-27  0:25             ` Simon Horman
2015-03-27  0:25             ` Simon Horman
2015-03-27 10:06             ` Will Deacon
2015-03-27 10:06               ` Will Deacon
2015-03-27 10:06               ` Will Deacon
2015-03-27 11:55               ` Simon Horman
2015-03-27 11:55                 ` Simon Horman
2015-03-27 11:55                 ` Simon Horman
2015-03-27 15:18               ` Tyler Baker
2015-03-27 15:18                 ` Tyler Baker
2015-03-27 15:18                 ` Tyler Baker
2015-03-31 18:58               ` Kevin Hilman
2015-03-31 18:58                 ` Kevin Hilman
2015-03-31 21:39                 ` Ard Biesheuvel
2015-03-31 21:39                   ` Ard Biesheuvel
2015-03-31 21:39                   ` Ard Biesheuvel
2015-03-31 22:10                   ` Kevin Hilman
2015-03-31 22:10                     ` Kevin Hilman
2015-03-31 22:10                     ` Kevin Hilman
2015-04-01  9:37                     ` [PATCH] mm/migrate: Mark unmap_and_move() "noinline" to avoid ICE in gcc 4.7.3 (was: Re: Possible regression in gcc 4.7.3 next-20150323 due to "ARM, arm64: kvm: get rid of the bounce page") Geert Uytterhoeven
2015-04-01  9:37                       ` Geert Uytterhoeven
2015-04-01  9:37                       ` Geert Uytterhoeven
2015-04-01  9:37                       ` Geert Uytterhoeven
2015-04-01  9:37                       ` [PATCH] mm/migrate: Mark unmap_and_move() "noinline" to avoid ICE in gcc 4.7.3 (was: Re: Possible re Geert Uytterhoeven
2015-04-01  9:47                       ` [PATCH] mm/migrate: Mark unmap_and_move() "noinline" to avoid ICE in gcc 4.7.3 Marc Zyngier
2015-04-01  9:47                         ` Marc Zyngier
2015-04-01  9:47                         ` Marc Zyngier
2015-04-01  9:47                         ` Marc Zyngier
2015-04-01 19:40                         ` Andrew Morton
2015-04-01 19:40                           ` Andrew Morton
2015-04-01 19:40                           ` Andrew Morton
2015-04-01 19:40                           ` Andrew Morton
2015-04-01 21:54                           ` Kevin Hilman
2015-04-01 21:54                             ` Kevin Hilman
2015-04-01 21:54                             ` Kevin Hilman
2015-04-01 21:54                             ` Kevin Hilman
2015-04-01 21:54                             ` Kevin Hilman
2015-04-01 21:59                             ` Russell King - ARM Linux
2015-04-01 21:59                               ` Russell King - ARM Linux
2015-04-01 21:59                               ` Russell King - ARM Linux
2015-04-01 21:59                               ` Russell King - ARM Linux
2015-04-02  7:17                               ` Geert Uytterhoeven
2015-04-02  7:17                                 ` Geert Uytterhoeven
2015-04-02  7:17                                 ` Geert Uytterhoeven
2015-04-02  7:17                                 ` Geert Uytterhoeven
2015-04-02 19:12                             ` Lina Iyer
2015-04-02 19:12                               ` Lina Iyer
2015-04-02 19:12                               ` Lina Iyer
2015-04-02 19:12                               ` Lina Iyer
2015-04-02 21:12                               ` Kevin Hilman
2015-04-02 21:12                                 ` Kevin Hilman
2015-04-02 21:12                                 ` Kevin Hilman
2015-04-02 21:12                                 ` Kevin Hilman
2015-04-02 21:53                                 ` Lina Iyer
2015-04-02 21:53                                   ` Lina Iyer
2015-04-02 21:53                                   ` Lina Iyer
2015-04-02 21:53                                   ` Lina Iyer
2015-04-07 17:57                             ` Kevin Hilman
2015-04-07 17:57                               ` Kevin Hilman
2015-04-07 17:57                               ` Kevin Hilman
2015-04-07 17:57                               ` Kevin Hilman
2015-04-07 20:17                               ` Andrew Morton
2015-04-07 20:17                                 ` Andrew Morton
2015-04-07 20:17                                 ` Andrew Morton
2015-04-07 20:17                                 ` Andrew Morton
2015-04-07 22:41                                 ` Kevin Hilman
2015-04-07 22:41                                   ` Kevin Hilman
2015-04-07 22:41                                   ` Kevin Hilman
2015-04-07 22:41                                   ` Kevin Hilman
2015-04-07 22:53                                   ` Andrew Morton
2015-04-07 22:53                                     ` Andrew Morton
2015-04-07 22:53                                     ` Andrew Morton
2015-04-07 22:53                                     ` Andrew Morton
2015-04-07 23:27                                     ` Kevin Hilman
2015-04-07 23:27                                       ` Kevin Hilman
2015-04-07 23:27                                       ` Kevin Hilman
2015-04-07 23:27                                       ` Kevin Hilman
2015-04-07 23:36                                       ` Andrew Morton
2015-04-07 23:36                                         ` Andrew Morton
2015-04-07 23:36                                         ` Andrew Morton
2015-04-07 23:36                                         ` Andrew Morton
2015-04-08  0:15                                         ` Kevin Hilman
2015-04-08  0:15                                           ` Kevin Hilman
2015-04-08  0:15                                           ` Kevin Hilman
2015-04-08  0:15                                           ` Kevin Hilman
2015-04-01 19:27                       ` Kevin Hilman
2015-04-01 19:27                         ` Kevin Hilman
2015-04-01 19:27                         ` Kevin Hilman
2015-04-01 19:27                         ` Kevin Hilman
2015-04-01 19:27                         ` Kevin Hilman
2015-04-01  8:58                 ` Possible regression in next-20150323 due to "ARM, arm64: kvm: get rid of the bounce page" Will Deacon
2015-04-01  8:58                   ` Will Deacon
2015-04-01  8:58                   ` Will Deacon
2015-04-01 13:54                   ` Nishanth Menon
2015-04-01 13:54                     ` Nishanth Menon
2015-04-01 13:54                     ` Nishanth Menon
2015-04-01 18:12                   ` Kevin Hilman
2015-04-01 18:12                     ` Kevin Hilman
2015-04-01 18:12                     ` Kevin Hilman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5511C24D.3080205@ti.com \
    --to=m-karicheri2@ti.com \
    --cc=gnurou@gmail.com \
    --cc=grygorii.strashko@linaro.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=ssantosh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.