All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH/RESEND] MIPS: Fix sibyte watchdog initialization
@ 2010-04-19 15:37 Guenter Roeck
  2010-04-19 15:56 ` Ralf Baechle
  2010-04-19 19:19 ` Wim Van Sebroeck
  0 siblings, 2 replies; 4+ messages in thread
From: Guenter Roeck @ 2010-04-19 15:37 UTC (permalink / raw)
  To: wim, alan, andy.sharp, linux-kernel; +Cc: linux-mips, ralf, Guenter Roeck

Watchdog configuration register and timer count register were interchanged,
causing wrong values to be written into both registers.
This caused watchdog triggered resets even if the watchdog was reset in time.

Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
---
Resend:
    Widening the audience.
    Please let me know if there are any problems with this patch.

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

diff --git a/drivers/watchdog/sb_wdog.c b/drivers/watchdog/sb_wdog.c
index 9748eed..1407cfa 100644
--- a/drivers/watchdog/sb_wdog.c
+++ b/drivers/watchdog/sb_wdog.c
@@ -67,8 +67,8 @@ static DEFINE_SPINLOCK(sbwd_lock);
 void sbwdog_set(char __iomem *wdog, unsigned long t)
 {
 	spin_lock(&sbwd_lock);
-	__raw_writeb(0, wdog - 0x10);
-	__raw_writeq(t & 0x7fffffUL, wdog);
+	__raw_writeb(0, wdog);
+	__raw_writeq(t & 0x7fffffUL, wdog - 0x10);
 	spin_unlock(&sbwd_lock);
 }
 
-- 
1.7.0.87.g0901d


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

* Re: [PATCH/RESEND] MIPS: Fix sibyte watchdog initialization
  2010-04-19 15:37 [PATCH/RESEND] MIPS: Fix sibyte watchdog initialization Guenter Roeck
@ 2010-04-19 15:56 ` Ralf Baechle
  2010-04-19 19:19 ` Wim Van Sebroeck
  1 sibling, 0 replies; 4+ messages in thread
From: Ralf Baechle @ 2010-04-19 15:56 UTC (permalink / raw)
  To: Guenter Roeck; +Cc: wim, alan, andy.sharp, linux-kernel, linux-mips

On Mon, Apr 19, 2010 at 08:37:11AM -0700, Guenter Roeck wrote:

> Watchdog configuration register and timer count register were interchanged,
> causing wrong values to be written into both registers.
> This caused watchdog triggered resets even if the watchdog was reset in time.
> 
> Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
> ---
> Resend:
>     Widening the audience.
>     Please let me know if there are any problems with this patch.

For the new audience, this patch has been previously posted to linux-mips
a few days ago and assuming there are no objections I'd like to merge it
upstream for 2.6.34, so an Ack would by nice.

  Ralf

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

* Re: [PATCH/RESEND] MIPS: Fix sibyte watchdog initialization
  2010-04-19 15:37 [PATCH/RESEND] MIPS: Fix sibyte watchdog initialization Guenter Roeck
  2010-04-19 15:56 ` Ralf Baechle
@ 2010-04-19 19:19 ` Wim Van Sebroeck
  2010-04-19 19:44   ` Guenter Roeck
  1 sibling, 1 reply; 4+ messages in thread
From: Wim Van Sebroeck @ 2010-04-19 19:19 UTC (permalink / raw)
  To: Guenter Roeck; +Cc: alan, andy.sharp, linux-kernel, linux-mips, ralf

Hi Guenter,

> Watchdog configuration register and timer count register were interchanged,
> causing wrong values to be written into both registers.
> This caused watchdog triggered resets even if the watchdog was reset in time.
> 
> Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>

Signed-off-by: Wim Van Sebroeck <wim@iguana.be>

Just let me know when this can be added as a fix in the watchdog tree.

Kind regards,
Wim.


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

* Re: [PATCH/RESEND] MIPS: Fix sibyte watchdog initialization
  2010-04-19 19:19 ` Wim Van Sebroeck
@ 2010-04-19 19:44   ` Guenter Roeck
  0 siblings, 0 replies; 4+ messages in thread
From: Guenter Roeck @ 2010-04-19 19:44 UTC (permalink / raw)
  To: Wim Van Sebroeck; +Cc: alan, andy.sharp, linux-kernel, linux-mips, ralf

On Mon, 2010-04-19 at 15:19 -0400, Wim Van Sebroeck wrote:
> Hi Guenter,
> 
> > Watchdog configuration register and timer count register were interchanged,
> > causing wrong values to be written into both registers.
> > This caused watchdog triggered resets even if the watchdog was reset in time.
> > 
> > Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
> 
> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
> 
> Just let me know when this can be added as a fix in the watchdog tree.
> 
The earlier the better from my perspective. 

Ralf may have had the mips tree in mind - might make sense to
synchronize with him.

Thanks,
Guenter



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

end of thread, other threads:[~2010-04-19 19:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-19 15:37 [PATCH/RESEND] MIPS: Fix sibyte watchdog initialization Guenter Roeck
2010-04-19 15:56 ` Ralf Baechle
2010-04-19 19:19 ` Wim Van Sebroeck
2010-04-19 19:44   ` Guenter Roeck

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.