[PATCH v4 2/2] watchdog: fix w83627hf_wdt clear timeout expired

2013-04-03 Thread Tony Chung
could take more than 5 minutes to run, then the computer reboot as soon as the driver was loaded. Signed-off-by: Tony Chung --- drivers/watchdog/w83627hf_wdt.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/watchdog/w83627hf_wdt.c b/drivers/watchdog/w836

[PATCH v3 1/2] watchdog: improve w83627hf_wdt to timeout in minute

2013-04-03 Thread Tony Chung
infrastructure. Added a new max_timeout variable so we can change it if needed. Signed-off-by: Tony Chung --- drivers/watchdog/w83627hf_wdt.c | 74 ++ 1 files changed, 58 insertions(+), 16 deletions(-) diff --git a/drivers/watchdog/w83627hf_wdt.c b/drivers

Re: [PATCH v3 2/2] watchdog: fix w83627hf_wdt clear timeout expired

2013-04-03 Thread Tony Chung
eady (i.e. expired or never start running): > + } else { > + outb_p(0, WDT_EFDR);/* disable to prevent reboot */ -- - Tony Chung -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordo

[PATCH v3 1/2] watchdog: improve w83627hf_wdt to timeout in minute

2013-04-03 Thread Tony Chung
infrastructure. Added a new max_timeout variable so we can change it if needed. Signed-off-by: Tony Chung tonychun...@gmail.com --- drivers/watchdog/w83627hf_wdt.c | 74 ++ 1 files changed, 58 insertions(+), 16 deletions(-) diff --git a/drivers/watchdog

[PATCH v4 2/2] watchdog: fix w83627hf_wdt clear timeout expired

2013-04-03 Thread Tony Chung
more than 5 minutes to run, then the computer reboot as soon as the driver was loaded. Signed-off-by: Tony Chung tonychun...@gmail.com --- drivers/watchdog/w83627hf_wdt.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/watchdog/w83627hf_wdt.c b/drivers/watchdog

Re: [PATCH v3 2/2] watchdog: fix w83627hf_wdt clear timeout expired

2013-04-03 Thread Tony Chung
. expired or never start running): + } else { + outb_p(0, WDT_EFDR);/* disable to prevent reboot */ -- - Tony Chung -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [PATCH v3 2/2] watchdog: fix w83627hf_wdt clear timeout expired

2013-04-01 Thread Tony Chung
eck wrote: > On Sun, Mar 31, 2013 at 10:59:32PM -0700, Tony Chung wrote: >> 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,

[PATCH v3 1/2] watchdog: improve w83627hf_wdt to timeout in minute

2013-04-01 Thread Tony Chung
infrastructure. Added a new max_timeout variable so we can change it if needed. Signed-off-by: Tony Chung --- drivers/watchdog/w83627hf_wdt.c | 74 ++ 1 files changed, 58 insertions(+), 16 deletions(-) diff --git a/drivers/watchdog/w83627hf_wdt.c b/drivers

[PATCH v3 2/2] watchdog: fix w83627hf_wdt clear timeout expired

2013-04-01 Thread Tony Chung
-by: Tony Chung --- drivers/watchdog/w83627hf_wdt.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/watchdog/w83627hf_wdt.c b/drivers/watchdog/w83627hf_wdt.c index 8fd..7eaa226 100644 --- a/drivers/watchdog/w83627hf_wdt.c +++ b/drivers/watchdog/w83627hf_wdt.c

[PATCH v3 1/2] watchdog: improve w83627hf_wdt to timeout in minute

2013-04-01 Thread Tony Chung
infrastructure. Added a new max_timeout variable so we can change it if needed. Signed-off-by: Tony Chung tonychun...@gmail.com --- drivers/watchdog/w83627hf_wdt.c | 74 ++ 1 files changed, 58 insertions(+), 16 deletions(-) diff --git a/drivers/watchdog

[PATCH v3 2/2] watchdog: fix w83627hf_wdt clear timeout expired

2013-04-01 Thread Tony Chung
-by: Tony Chung tonychun...@gmail.com --- drivers/watchdog/w83627hf_wdt.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/watchdog/w83627hf_wdt.c b/drivers/watchdog/w83627hf_wdt.c index 8fd..7eaa226 100644 --- a/drivers/watchdog/w83627hf_wdt.c +++ b/drivers

Re: [PATCH v3 2/2] watchdog: fix w83627hf_wdt clear timeout expired

2013-04-01 Thread Tony Chung
-us.net wrote: On Sun, Mar 31, 2013 at 10:59:32PM -0700, Tony Chung wrote: 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

Re: [PATCHv2 2/2] watchdog: fix w83627hf_wdt reboot due to timeout expired

2013-03-31 Thread Tony Chung
How about this? - t &= ~0xC0; /* disable keyboard & mouse turning off - watchdog */ + t &= ~0xE0; /* clear timeout occurred and disable keyboard +& mouse turning off watchdog */

Re: [PATCHv2 2/2] watchdog: fix w83627hf_wdt reboot due to timeout expired

2013-03-31 Thread Tony Chung
How about this? - t = ~0xC0; /* disable keyboard mouse turning off - watchdog */ + t = ~0xE0; /* clear timeout occurred and disable keyboard + mouse turning off watchdog */ Thanks,

[PATCHv2 2/2] watchdog: fix w83627hf_wdt reboot due to timeout expired

2013-03-30 Thread Tony Chung
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 --- drivers/watchdog

[PATCHv2 1/2] watchdog: improve w83627hf_wdt to timeout in minute

2013-03-30 Thread Tony Chung
infrastructure. Added a new max_timeout variable so we can change it if needed. Signed-off-by: Tony Chung --- drivers/watchdog/w83627hf_wdt.c | 74 ++ 1 files changed, 58 insertions(+), 16 deletions(-) diff --git a/drivers/watchdog/w83627hf_wdt.c b/drivers

[PATCHv2 1/2] watchdog: improve w83627hf_wdt to timeout in minute

2013-03-30 Thread Tony Chung
infrastructure. Added a new max_timeout variable so we can change it if needed. Signed-off-by: Tony Chung tonychun...@gmail.com --- drivers/watchdog/w83627hf_wdt.c | 74 ++ 1 files changed, 58 insertions(+), 16 deletions(-) diff --git a/drivers/watchdog

[PATCHv2 2/2] watchdog: fix w83627hf_wdt reboot due to timeout expired

2013-03-30 Thread Tony Chung
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 tonychun...@gmail.com

[PATCH 1/1] watchdog:improve w83627hf_wdt to timeout in minutes

2013-03-24 Thread Tony Chung
The current maximum of 255 seconds is insufficient. For example, crash dump could take 5+ minutes. Signed-off-by: Tony Chung --- drivers/watchdog/w83627hf_wdt.c | 73 ++ 1 files changed, 57 insertions(+), 16 deletions(-) diff --git a/drivers/watchdog

[PATCH 1/1] watchdog:improve w83627hf_wdt to timeout in minutes

2013-03-24 Thread Tony Chung
The current maximum of 255 seconds is insufficient. For example, crash dump could take 5+ minutes. Signed-off-by: Tony Chung tonychun...@gmail.com --- drivers/watchdog/w83627hf_wdt.c | 73 ++ 1 files changed, 57 insertions(+), 16 deletions(-) diff --git