mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] watchdog: fix initialisation printout in s3c2410_wdt
@ 2011-11-16  8:46 Dmitry Artamonow
  2011-11-16 10:33 ` Thomas Abraham
  0 siblings, 1 reply; 5+ messages in thread
From: Dmitry Artamonow @ 2011-11-16  8:46 UTC (permalink / raw)
  To: Wim Van Sebroeck
  Cc: Kukjin Kim, Ben Dooks, linux-arm-kernel, linux-watchdog, linux-kernel

Looks like a typo creeped in, and driver prints
s3c2410-wdt s3c2410-wdt: watchdog active, reset abled, irq abled

instead of
s3c2410-wdt s3c2410-wdt: watchdog active, reset enabled, irq enabled

Also it may completely disinform about irq status, as it prints
"irq enabled" when S3C2410_WTCON_INTEN is in fact 0.

Fix it.

Signed-off-by: Dmitry Artamonow <mad_soft@inbox.ru>
---

It seems to be here for a long time, but I don't think it's
important enough for cc-ing stable.

Also I haven't tested it, as I don't have a hardware, but it's
rather trivial (and yes, I checked with datasheet that 1 in
S3C2410_WTCON_*EN bits really means 'enabled')

 drivers/watchdog/s3c2410_wdt.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/watchdog/s3c2410_wdt.c b/drivers/watchdog/s3c2410_wdt.c
index 5de7e4f..a79e384 100644
--- a/drivers/watchdog/s3c2410_wdt.c
+++ b/drivers/watchdog/s3c2410_wdt.c
@@ -401,8 +401,8 @@ static int __devinit s3c2410wdt_probe(struct platform_device *pdev)
 
 	dev_info(dev, "watchdog %sactive, reset %sabled, irq %sabled\n",
 		 (wtcon & S3C2410_WTCON_ENABLE) ?  "" : "in",
-		 (wtcon & S3C2410_WTCON_RSTEN) ? "" : "dis",
-		 (wtcon & S3C2410_WTCON_INTEN) ? "" : "en");
+		 (wtcon & S3C2410_WTCON_RSTEN) ? "en" : "dis",
+		 (wtcon & S3C2410_WTCON_INTEN) ? "en" : "dis");
 
 	return 0;
 
-- 
1.7.5.1.300.gc565c


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] watchdog: fix initialisation printout in s3c2410_wdt
  2011-11-16  8:46 [PATCH] watchdog: fix initialisation printout in s3c2410_wdt Dmitry Artamonow
@ 2011-11-16 10:33 ` Thomas Abraham
  2011-12-01  7:29   ` Kukjin Kim
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Abraham @ 2011-11-16 10:33 UTC (permalink / raw)
  To: Dmitry Artamonow
  Cc: Wim Van Sebroeck, linux-kernel, Kukjin Kim, linux-arm-kernel,
	Ben Dooks, linux-watchdog

On 16 November 2011 14:16, Dmitry Artamonow <mad_soft@inbox.ru> wrote:
> Looks like a typo creeped in, and driver prints
> s3c2410-wdt s3c2410-wdt: watchdog active, reset abled, irq abled
>
> instead of
> s3c2410-wdt s3c2410-wdt: watchdog active, reset enabled, irq enabled
>
> Also it may completely disinform about irq status, as it prints
> "irq enabled" when S3C2410_WTCON_INTEN is in fact 0.
>
> Fix it.
>
> Signed-off-by: Dmitry Artamonow <mad_soft@inbox.ru>
> ---
>
> It seems to be here for a long time, but I don't think it's
> important enough for cc-ing stable.
>
> Also I haven't tested it, as I don't have a hardware, but it's
> rather trivial (and yes, I checked with datasheet that 1 in
> S3C2410_WTCON_*EN bits really means 'enabled')
>

Tested on Exynos4210 based Origen board. This patch fixed in incorrect
"irq enabled" message at bootup. Thanks for this fix.

Tested-by: Thomas Abraham <thomas.abraham@linaro.org>

>  drivers/watchdog/s3c2410_wdt.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/watchdog/s3c2410_wdt.c b/drivers/watchdog/s3c2410_wdt.c
> index 5de7e4f..a79e384 100644
> --- a/drivers/watchdog/s3c2410_wdt.c
> +++ b/drivers/watchdog/s3c2410_wdt.c
> @@ -401,8 +401,8 @@ static int __devinit s3c2410wdt_probe(struct platform_device *pdev)
>
>        dev_info(dev, "watchdog %sactive, reset %sabled, irq %sabled\n",
>                 (wtcon & S3C2410_WTCON_ENABLE) ?  "" : "in",
> -                (wtcon & S3C2410_WTCON_RSTEN) ? "" : "dis",
> -                (wtcon & S3C2410_WTCON_INTEN) ? "" : "en");
> +                (wtcon & S3C2410_WTCON_RSTEN) ? "en" : "dis",
> +                (wtcon & S3C2410_WTCON_INTEN) ? "en" : "dis");
>
>        return 0;
>
> --
> 1.7.5.1.300.gc565c
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [PATCH] watchdog: fix initialisation printout in s3c2410_wdt
  2011-11-16 10:33 ` Thomas Abraham
@ 2011-12-01  7:29   ` Kukjin Kim
  2011-12-01  9:09     ` Wim Van Sebroeck
  0 siblings, 1 reply; 5+ messages in thread
From: Kukjin Kim @ 2011-12-01  7:29 UTC (permalink / raw)
  To: 'Thomas Abraham', 'Dmitry Artamonow'
  Cc: 'Wim Van Sebroeck',
	linux-kernel, linux-arm-kernel, 'Ben Dooks',
	linux-watchdog

Thomas Abraham wrote:
> 
> On 16 November 2011 14:16, Dmitry Artamonow <mad_soft@inbox.ru> wrote:
> > Looks like a typo creeped in, and driver prints
> > s3c2410-wdt s3c2410-wdt: watchdog active, reset abled, irq abled
> >
> > instead of
> > s3c2410-wdt s3c2410-wdt: watchdog active, reset enabled, irq enabled
> >
> > Also it may completely disinform about irq status, as it prints
> > "irq enabled" when S3C2410_WTCON_INTEN is in fact 0.
> >
> > Fix it.
> >
> > Signed-off-by: Dmitry Artamonow <mad_soft@inbox.ru>
> > ---
> >
> > It seems to be here for a long time, but I don't think it's
> > important enough for cc-ing stable.
> >
> > Also I haven't tested it, as I don't have a hardware, but it's
> > rather trivial (and yes, I checked with datasheet that 1 in
> > S3C2410_WTCON_*EN bits really means 'enabled')
> >
> 
> Tested on Exynos4210 based Origen board. This patch fixed in incorrect
> "irq enabled" message at bootup. Thanks for this fix.
> 
> Tested-by: Thomas Abraham <thomas.abraham@linaro.org>
> 

Acked-by: Kukjin Kim <kgene.kim@samsung.com>

Hi Wim,
Please pick this up in your tree and if any problem, let me know.

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <kgene.kim@samsung.com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.


> >  drivers/watchdog/s3c2410_wdt.c |    4 ++--
> >  1 files changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/watchdog/s3c2410_wdt.c
> b/drivers/watchdog/s3c2410_wdt.c
> > index 5de7e4f..a79e384 100644
> > --- a/drivers/watchdog/s3c2410_wdt.c
> > +++ b/drivers/watchdog/s3c2410_wdt.c
> > @@ -401,8 +401,8 @@ static int __devinit s3c2410wdt_probe(struct
> platform_device *pdev)
> >
> >        dev_info(dev, "watchdog %sactive, reset %sabled, irq %sabled\n",
> >                 (wtcon & S3C2410_WTCON_ENABLE) ?  "" : "in",
> > -                (wtcon & S3C2410_WTCON_RSTEN) ? "" : "dis",
> > -                (wtcon & S3C2410_WTCON_INTEN) ? "" : "en");
> > +                (wtcon & S3C2410_WTCON_RSTEN) ? "en" : "dis",
> > +                (wtcon & S3C2410_WTCON_INTEN) ? "en" : "dis");
> >
> >        return 0;
> >
> > --
> > 1.7.5.1.300.gc565c


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] watchdog: fix initialisation printout in s3c2410_wdt
  2011-12-01  7:29   ` Kukjin Kim
@ 2011-12-01  9:09     ` Wim Van Sebroeck
  2011-12-01 10:12       ` Kukjin Kim
  0 siblings, 1 reply; 5+ messages in thread
From: Wim Van Sebroeck @ 2011-12-01  9:09 UTC (permalink / raw)
  To: Kukjin Kim
  Cc: 'Thomas Abraham', 'Dmitry Artamonow',
	linux-kernel, linux-arm-kernel, 'Ben Dooks',
	linux-watchdog

Hi Kim,

> Thomas Abraham wrote:
> > 
> > On 16 November 2011 14:16, Dmitry Artamonow <mad_soft@inbox.ru> wrote:
> > > Looks like a typo creeped in, and driver prints
> > > s3c2410-wdt s3c2410-wdt: watchdog active, reset abled, irq abled
> > >
> > > instead of
> > > s3c2410-wdt s3c2410-wdt: watchdog active, reset enabled, irq enabled
> > >
> > > Also it may completely disinform about irq status, as it prints
> > > "irq enabled" when S3C2410_WTCON_INTEN is in fact 0.
> > >
> > > Fix it.
> > >
> > > Signed-off-by: Dmitry Artamonow <mad_soft@inbox.ru>
> > > ---
> > >
> > > It seems to be here for a long time, but I don't think it's
> > > important enough for cc-ing stable.
> > >
> > > Also I haven't tested it, as I don't have a hardware, but it's
> > > rather trivial (and yes, I checked with datasheet that 1 in
> > > S3C2410_WTCON_*EN bits really means 'enabled')
> > >
> > 
> > Tested on Exynos4210 based Origen board. This patch fixed in incorrect
> > "irq enabled" message at bootup. Thanks for this fix.
> > 
> > Tested-by: Thomas Abraham <thomas.abraham@linaro.org>
> > 
> 
> Acked-by: Kukjin Kim <kgene.kim@samsung.com>
> 
> Hi Wim,
> Please pick this up in your tree and if any problem, let me know.

See commit 20403e845f9988446c5b48024ff4d0c3a5929f7d in the linux git tree.

Kind regards,
Wim.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [PATCH] watchdog: fix initialisation printout in s3c2410_wdt
  2011-12-01  9:09     ` Wim Van Sebroeck
@ 2011-12-01 10:12       ` Kukjin Kim
  0 siblings, 0 replies; 5+ messages in thread
From: Kukjin Kim @ 2011-12-01 10:12 UTC (permalink / raw)
  To: 'Wim Van Sebroeck'
  Cc: 'Thomas Abraham', 'Dmitry Artamonow',
	linux-kernel, linux-arm-kernel, 'Ben Dooks',
	linux-watchdog

Wim Van Sebroeck wrote:
> 
> Hi Kim,
> 
> > Thomas Abraham wrote:
> > >
> > > On 16 November 2011 14:16, Dmitry Artamonow <mad_soft@inbox.ru> wrote:
> > > > Looks like a typo creeped in, and driver prints
> > > > s3c2410-wdt s3c2410-wdt: watchdog active, reset abled, irq abled
> > > >
> > > > instead of
> > > > s3c2410-wdt s3c2410-wdt: watchdog active, reset enabled, irq enabled
> > > >
> > > > Also it may completely disinform about irq status, as it prints
> > > > "irq enabled" when S3C2410_WTCON_INTEN is in fact 0.
> > > >
> > > > Fix it.
> > > >
> > > > Signed-off-by: Dmitry Artamonow <mad_soft@inbox.ru>
> > > > ---
> > > >
> > > > It seems to be here for a long time, but I don't think it's
> > > > important enough for cc-ing stable.
> > > >
> > > > Also I haven't tested it, as I don't have a hardware, but it's
> > > > rather trivial (and yes, I checked with datasheet that 1 in
> > > > S3C2410_WTCON_*EN bits really means 'enabled')
> > > >
> > >
> > > Tested on Exynos4210 based Origen board. This patch fixed in incorrect
> > > "irq enabled" message at bootup. Thanks for this fix.
> > >
> > > Tested-by: Thomas Abraham <thomas.abraham@linaro.org>
> > >
> >
> > Acked-by: Kukjin Kim <kgene.kim@samsung.com>
> >
> > Hi Wim,
> > Please pick this up in your tree and if any problem, let me know.
> 
> See commit 20403e845f9988446c5b48024ff4d0c3a5929f7d in the linux git tree.
> 
OK :)

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <kgene.kim@samsung.com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-12-01 10:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-16  8:46 [PATCH] watchdog: fix initialisation printout in s3c2410_wdt Dmitry Artamonow
2011-11-16 10:33 ` Thomas Abraham
2011-12-01  7:29   ` Kukjin Kim
2011-12-01  9:09     ` Wim Van Sebroeck
2011-12-01 10:12       ` Kukjin Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®