From: Tony Chung <tonychung00@gmail.com>
To: Wim Van Sebroeck <wim@iguana.be>, linux-watchdog@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, Tony Chung <tonychung00@gmail.com>
Subject: [PATCHv2 2/2] watchdog: fix w83627hf_wdt reboot due to timeout expired
Date: Sat, 30 Mar 2013 18:59:08 -0700 [thread overview]
Message-ID: <1364695148-5605-2-git-send-email-tonychung00@gmail.com> (raw)
In-Reply-To: <1364695148-5605-1-git-send-email-tonychung00@gmail.com>
Observed that the w83627hf watchdog timer start counting during reboot.
If the system load the driver after 5 minutes, it rebooted immediately because of timer expired.
For example, fsck took more than 5 minutes to run, then reboot will occurred.
Signed-off-by: Tony Chung <tonychung00@gmail.com>
---
drivers/watchdog/w83627hf_wdt.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/drivers/watchdog/w83627hf_wdt.c b/drivers/watchdog/w83627hf_wdt.c
index 8f1111d..47eb233 100644
--- a/drivers/watchdog/w83627hf_wdt.c
+++ b/drivers/watchdog/w83627hf_wdt.c
@@ -174,6 +174,11 @@ static void w83627hf_init(void)
outb_p(0xF7, WDT_EFER); /* Select CRF7 */
t = inb_p(WDT_EFDR); /* read CRF7 */
+ if (t & 0x10) {
+ pr_info("Watchdog Timer timeout occurred!");
+ t &= ~0x10; /* clear the event */
+ pr_info("Event cleared\n");
+ }
t &= ~0xC0; /* disable keyboard & mouse turning off
watchdog */
outb_p(t, WDT_EFDR); /* Write back to CRF7 */
--
1.7.0.4
next prev parent reply other threads:[~2013-03-31 2:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-31 1:59 [PATCHv2 1/2] watchdog: improve w83627hf_wdt to timeout in minute Tony Chung
2013-03-31 1:59 ` Tony Chung [this message]
2013-03-31 4:11 ` [PATCHv2 2/2] watchdog: fix w83627hf_wdt reboot due to timeout expired Guenter Roeck
2013-03-31 15:45 ` Tony Chung
2013-03-31 16:24 ` 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=1364695148-5605-2-git-send-email-tonychung00@gmail.com \
--to=tonychung00@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-watchdog@vger.kernel.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®