From: Paul Bolle <pebolle@tiscali.nl>
To: Jean-Baptiste Theou <jtheou@adeneo-embedded.us>
Cc: Wim Van Sebroeck <wim@iguana.be>,
Guenter Roeck <linux@roeck-us.net>,
linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 2/2] gpio_wdt: Add option for early registration
Date: Sat, 06 Jun 2015 12:03:06 +0200 [thread overview]
Message-ID: <1433584986.10861.46.camel@x220> (raw)
In-Reply-To: <1433576786-14947-2-git-send-email-jtheou@adeneo-embedded.us>
On Sat, 2015-06-06 at 00:46 -0700, Jean-Baptiste Theou wrote:
> --- a/drivers/watchdog/Kconfig
> +++ b/drivers/watchdog/Kconfig
> +config GPIO_WATCHDOG_ARCH_INITCALL
> + bool "Register the watchdog as early as possible"
> + depends on GPIO_WATCHDOG=y
> + help
> + In some situations, the default initcall level (module_init)
> + in not early enough in the boot process to avoid the watchdog
> + to be triggered.
> + If you say yes here, the initcall level would be raised to
> + arch_initcall.
> + If in doubt, say N.
> --- a/drivers/watchdog/gpio_wdt.c
> +++ b/drivers/watchdog/gpio_wdt.c
> +#ifdef GPIO_WATCHDOG_ARCH_INITCALL
You meant
#ifdef CONFIG_GPIO_WATCHDOG_ARCH_INITCALL
Please use scripts/checkkconfigsymbols.py.
> +static int __init gpio_wdt_init(void)
> +{
> + return platform_driver_register(&gpio_wdt_driver);
> +}
> +arch_initcall(gpio_wdt_init);
> +#else
> module_platform_driver(gpio_wdt_driver);
> +#endif
The entire patch is basically an elaborate NOP. How did this pass your
testing?
Paul Bolle
next prev parent reply other threads:[~2015-06-06 10:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-06 7:46 [PATCH v3 1/2] watchdog_core: Add watchdog registration deferral mechanism Jean-Baptiste Theou
2015-06-06 7:46 ` [PATCH v3 2/2] gpio_wdt: Add option for early registration Jean-Baptiste Theou
2015-06-06 10:03 ` Paul Bolle [this message]
2015-06-06 12:56 ` Valentin Rothberg
2015-06-06 14:11 ` Paul Bolle
2015-06-06 16:19 ` Jean-Baptiste Theou
2015-06-06 17:00 ` Guenter Roeck
2015-06-06 17:00 ` [PATCH v3 1/2] watchdog_core: Add watchdog registration deferral mechanism 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=1433584986.10861.46.camel@x220 \
--to=pebolle@tiscali.nl \
--cc=jtheou@adeneo-embedded.us \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=linux@roeck-us.net \
--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