linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 1/1] watchdog: Add common nowayout parameter to booke_wdt driver
@ 2020-07-06 16:33 Timothy Myers
  2020-07-06 22:18 ` Guenter Roeck
  0 siblings, 1 reply; 3+ messages in thread
From: Timothy Myers @ 2020-07-06 16:33 UTC (permalink / raw)
  To: Wim Van Sebroeck, Guenter Roeck, linux-watchdog; +Cc: linux-kernel, David Boike

Add the common "nowayout" parameter to booke_wdt to make this behavior
selectable at runtime and to make the implementation more consistent with
many other watchdog drivers.

Signed-off-by: Timothy Myers <timothy.myers@adtran.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>

Changes in:
	v2:
		Added Guenter Roeck's reviewed-by tag at his request
	v3:
		Fix whitespace formatting in message.
---
 drivers/watchdog/booke_wdt.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/watchdog/booke_wdt.c b/drivers/watchdog/booke_wdt.c
index 9d09bbfdef20..7817fb976f9c 100644
--- a/drivers/watchdog/booke_wdt.c
+++ b/drivers/watchdog/booke_wdt.c
@@ -39,6 +39,11 @@ static bool booke_wdt_enabled;
 module_param(booke_wdt_enabled, bool, 0);
 static int  booke_wdt_period = CONFIG_BOOKE_WDT_DEFAULT_TIMEOUT;
 module_param(booke_wdt_period, int, 0);
+static bool nowayout = WATCHDOG_NOWAYOUT;
+module_param(nowayout, bool, 0);
+MODULE_PARM_DESC(nowayout,
+		"Watchdog cannot be stopped once started (default="
+				__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
 
 #ifdef CONFIG_PPC_FSL_BOOK3E
 
@@ -215,7 +220,6 @@ static void __exit booke_wdt_exit(void)
 static int __init booke_wdt_init(void)
 {
 	int ret = 0;
-	bool nowayout = WATCHDOG_NOWAYOUT;
 
 	pr_info("powerpc book-e watchdog driver loaded\n");
 	booke_wdt_info.firmware_version = cur_cpu_spec->pvr_value;

base-commit: dd0d718152e4c65b173070d48ea9dfc06894c3e5
-- 
2.20.1

Timothy Myers
Software Design Engineer

Office: 256.963.8844
Email: timothy.myers@adtran.com
Web: www.adtran.com

ADTRAN
901 Explorer Boulevard 
Huntsville, AL 35806 - USA

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

* Re: [PATCH v3 1/1] watchdog: Add common nowayout parameter to booke_wdt driver
  2020-07-06 16:33 [PATCH v3 1/1] watchdog: Add common nowayout parameter to booke_wdt driver Timothy Myers
@ 2020-07-06 22:18 ` Guenter Roeck
  2020-07-07 12:13   ` Timothy Myers
  0 siblings, 1 reply; 3+ messages in thread
From: Guenter Roeck @ 2020-07-06 22:18 UTC (permalink / raw)
  To: Timothy Myers, Wim Van Sebroeck, linux-watchdog; +Cc: linux-kernel, David Boike

On 7/6/20 9:33 AM, Timothy Myers wrote:
> Add the common "nowayout" parameter to booke_wdt to make this behavior
> selectable at runtime and to make the implementation more consistent with
> many other watchdog drivers.
> 
> Signed-off-by: Timothy Myers <timothy.myers@adtran.com>
> Reviewed-by: Guenter Roeck <linux@roeck-us.net>
> 
> Changes in:
> 	v2:
> 		Added Guenter Roeck's reviewed-by tag at his request
> 	v3:
> 		Fix whitespace formatting in message.
> ---

Change log goes here.

I applied your patch to watchdog-next, but there is still something
in it which prevents it from showing up at
https://patchwork.kernel.org/project/linux-watchdog/list/, even though
I do see it at https://lore.kernel.org/linux-watchdog/.

Looking into the e-mail source, I think the problem may be due
to some Outlook specific formatting in the raw message:

Add the common "nowayout" parameter to booke_wdt to make this behavior=0A=
selectable at runtime and to make the implementation more consistent with=
=0A=
many other watchdog drivers.=0A=
=0A=

and so on. If that is persistent, it may make sense to fix it, or
you might wonder why some of your patches are being ignored.

Thanks,
Guenter

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

* Re: [PATCH v3 1/1] watchdog: Add common nowayout parameter to booke_wdt driver
  2020-07-06 22:18 ` Guenter Roeck
@ 2020-07-07 12:13   ` Timothy Myers
  0 siblings, 0 replies; 3+ messages in thread
From: Timothy Myers @ 2020-07-07 12:13 UTC (permalink / raw)
  To: Guenter Roeck, Wim Van Sebroeck, linux-watchdog; +Cc: linux-kernel, David Boike




From: linux-watchdog-owner@vger.kernel.org <linux-watchdog-owner@vger.kernel.org> on behalf of Guenter Roeck <linux@roeck-us.net>
Sent: Monday, July 6, 2020 5:18 PM
To: Timothy Myers <timothy.myers@adtran.com>; Wim Van Sebroeck <wim@linux-watchdog.org>; linux-watchdog@vger.kernel.org <linux-watchdog@vger.kernel.org>
Cc: linux-kernel@vger.kernel.org <linux-kernel@vger.kernel.org>; David Boike <david.boike@adtran.com>
Subject: Re: [PATCH v3 1/1] watchdog: Add common nowayout parameter to booke_wdt driver 
 
On 7/6/20 9:33 AM, Timothy Myers wrote:
>> Add the common "nowayout" parameter to booke_wdt to make this behavior
>> selectable at runtime and to make the implementation more consistent with
>> many other watchdog drivers.
>> 
>> Signed-off-by: Timothy Myers <timothy.myers@adtran.com>
>> Reviewed-by: Guenter Roeck <linux@roeck-us.net>
>> 
>> Changes in:
>> v2:
>> Added Guenter Roeck's reviewed-by tag at his request
>> v3:
>> Fix whitespace formatting in message.
>> ---
>
>Change log goes here.
>
>I applied your patch to watchdog-next, but there is still something
>in it which prevents it from showing up at
>https://patchwork.kernel.org/project/linux-watchdog/list/, even though
>I do see it at https://lore.kernel.org/linux-watchdog/.
>
>Looking into the e-mail source, I think the problem may be due
>to some Outlook specific formatting in the raw message:
>
>Add the common "nowayout" parameter to booke_wdt to make this behavior=0A=
>selectable at runtime and to make the implementation more consistent with=
>=0A=
>many other watchdog drivers.=0A=
>=0A=
>
>and so on. If that is persistent, it may make sense to fix it, or
>you might wonder why some of your patches are being ignored.
>
>Thanks,
>Guenter
Thank you for applying the patch, and thank you again for your help with my mail. I'll look into the formatting.

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

end of thread, other threads:[~2020-07-07 12:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-06 16:33 [PATCH v3 1/1] watchdog: Add common nowayout parameter to booke_wdt driver Timothy Myers
2020-07-06 22:18 ` Guenter Roeck
2020-07-07 12:13   ` Timothy Myers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).