From: Wim Van Sebroeck <wim@iguana.be>
To: H Hartley Sweeten <hartleys@visionengravers.com>
Cc: Mika Westerberg <mika.westerberg@iki.fi>,
Linux Kernel <linux-kernel@vger.kernel.org>,
"linux-watchdog@vger.kernel.org" <linux-watchdog@vger.kernel.org>,
"mika.westerberg@linux.intel.com"
<mika.westerberg@linux.intel.com>
Subject: Re: [RFC PATCH v2] watchdog: ep93xx: Use the WatchDog Timer Driver Core.
Date: Thu, 4 Aug 2011 22:04:39 +0200 [thread overview]
Message-ID: <20110804200439.GU4227@infomag.iguana.be> (raw)
In-Reply-To: <ADE657CA350FB648AAC2C43247A983F001F3882B8C44@AUSP01VMBX24.collaborationhost.net>
Hi All,
> > BTW, now that the driver uses watchdog core should we also select
> > WATCHDOG_CORE in the Kconfig? If it is not enabled we get:
> >
> > drivers/built-in.o: In function `ep93xx_wdt_init':
> > clkdev.c:(.init.text+0x2bd8): undefined reference to
> > `watchdog_register_device'
> > make: *** [.tmp_vmlinux1] Error 1
>
> Of course.
>
> I wasn't sure how Wim wanted to handle this. I see two ways of doing it
> in the Kconfig.
>
> 1) Each driver config option has a select WATCHDOG_CORE if it is required.
>
> Pro: all the watchdog drivers (that are available) are displayed
> Con: each driver needs to add the select if needed
> Side-effect: the WATCHDOG_CORE option could (should) be a hidden option
>
> 2) Separate the watchdog drivers into groups that need the WATCHDOG_CORE
> and those that don't then put a if WATCHDOG_CORE/endif around the ones
> that need it.
>
> Pro: keeps the Kconfig clean
> Con: the drivers that use WATCHDOG_CORE are not displayed unless the
> option is selected
> Con: defconfigs probably will need to be updated to select WATCHDOG_CORE
>
> Wim, do you have any opinion on this?
I allready discussed this with Wolfram a few weeks ago. Since we don't want
defconfigs to change, the best option is to:
1) use 'select WATCHDOG_CORE' during conversion of the drivers.
2) remove CONFIG_WATCHDOG_CORE and replace it by CONFIG_WATCHDOG in a later
stage so that the core API becomes the user-space layer for all watchdog
device drivers.This so that we can support multiple watchdogs in the
future and to make sure that we keep having a consistent user-space
interface.
Kind regards,
Wim.
next prev parent reply other threads:[~2011-08-04 20:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-03 17:21 H Hartley Sweeten
2011-08-04 18:12 ` Mika Westerberg
2011-08-04 18:29 ` H Hartley Sweeten
2011-08-04 20:04 ` Wim Van Sebroeck [this message]
2011-08-04 20:53 ` H Hartley Sweeten
2011-08-04 21:54 ` H Hartley Sweeten
2011-08-05 17:53 ` Mika Westerberg
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=20110804200439.GU4227@infomag.iguana.be \
--to=wim@iguana.be \
--cc=hartleys@visionengravers.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=mika.westerberg@iki.fi \
--cc=mika.westerberg@linux.intel.com \
/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®