mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Valentin Rothberg <valentinrothberg@gmail.com>
To: Paul Bolle <pebolle@tiscali.nl>
Cc: Jean-Baptiste Theou <jtheou@adeneo-embedded.us>,
	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, 6 Jun 2015 14:56:11 +0200	[thread overview]
Message-ID: <20150606125611.GA16930@nebuchadnezzar> (raw)
In-Reply-To: <1433584986.10861.46.camel@x220>

On Sat, Jun 06, 2015 at 12:03:06PM +0200, Paul Bolle wrote:
> 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.

checkkconfigsymbols.py only checks CONFIG_ prefix symbols.  Since this
prefix is missing here, the script would not complain.  But that's
an interesting case and worth checking for.

Kind regards,
 Valentin

> 
> > +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

  reply	other threads:[~2015-06-06 12:56 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
2015-06-06 12:56     ` Valentin Rothberg [this message]
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=20150606125611.GA16930@nebuchadnezzar \
    --to=valentinrothberg@gmail.com \
    --cc=jtheou@adeneo-embedded.us \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-watchdog@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=pebolle@tiscali.nl \
    --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

Powered by JetHome