From: Guenter Roeck <guenter.roeck@ericsson.com>
To: wim@iguana.be, alan@redhat.com, andy.sharp@onstor.com,
linux-kernel@vger.kernel.org
Cc: linux-mips@vger.kernel.org, ralf@linux-mips.org,
Guenter Roeck <guenter.roeck@ericsson.com>
Subject: [PATCH/RESEND] MIPS: Fix sibyte watchdog initialization
Date: Mon, 19 Apr 2010 08:37:11 -0700 [thread overview]
Message-ID: <1271691431-28166-1-git-send-email-guenter.roeck@ericsson.com> (raw)
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
next reply other threads:[~2010-04-19 15:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-19 15:37 Guenter Roeck [this message]
2010-04-19 15:56 ` Ralf Baechle
2010-04-19 19:19 ` Wim Van Sebroeck
2010-04-19 19:44 ` Guenter Roeck
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=1271691431-28166-1-git-send-email-guenter.roeck@ericsson.com \
--to=guenter.roeck@ericsson.com \
--cc=alan@redhat.com \
--cc=andy.sharp@onstor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=ralf@linux-mips.org \
--cc=wim@iguana.be \
/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 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®