Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1447506
| From | Rasmus Villemoes <rasmus.villemoes@prevas.dk> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC 3/3] watchdog: introduce CONFIG_WATCHDOG_OPEN_DEADLINE |
| Date | 2016-07-21 00:20 +0200 |
| Message-ID | <rX80q-7jq-5@gated-at.bofh.it> (permalink) |
| References | <rUL7X-7Qb-3@gated-at.bofh.it> <rUL7X-7Qb-11@gated-at.bofh.it> <rUQ7D-2v3-7@gated-at.bofh.it> <rV62K-47o-3@gated-at.bofh.it> <rVchP-7ZP-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 2016-07-15 16:29, Guenter Roeck wrote: > On 07/15/2016 12:32 AM, Rasmus Villemoes wrote: > >>> The initial timeout should be specified as module option or as >>> devicetree parameter, and there should be no additional configuration >>> option. >> >> I was under the impression that device tree was exclusively for >> describing hardware, and this certainly is not that. I also wanted to >> avoid having to modify each driver, which would seem to be necessary >> if it was module parameter/DT - the only thing required of a driver >> now is that it correctly reports WDOG_HW_RUNNING. > > What is "hardware" ? It is supposed to describe the system, isn't it ? > Part of that system is its clock rate, > and the means how the OS is loaded, and both have impact on the initial > timeout (and the regular timeout). > > You might as well argue that clock rates should not be in devicetree > either. Clock rates are, after all, > just reflecting the _use_ of the hardware, not the hardware itself. But they are used to configure hardware. The init timeout is not a property of any particular device - it configures how the kernel behaves, and as such I find it quite natural to have it in the kernel's .config (and overridable on command line and via sysfs). > Devicetree could be handled in the core, with a function to set the > initial timeout, > or possibly even with the watchdog registration itself. But where in the device tree would you put this value? I'd really prefer not having to modify the node representing each individual watchdog device I might use. Rasmus
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[RFC 0/3] watchdog: introduce open deadline Rasmus Villemoes <rasmus.villemoes@prevas.dk> - 2016-07-14 11:30 +0200
[RFC 2/3] watchdog: introduce watchdog_worker_should_ping helper Rasmus Villemoes <rasmus.villemoes@prevas.dk> - 2016-07-14 11:30 +0200
[RFC 1/3] watchdog: change watchdog_need_worker logic Rasmus Villemoes <rasmus.villemoes@prevas.dk> - 2016-07-14 11:30 +0200
Re: [RFC 1/3] watchdog: change watchdog_need_worker logic Guenter Roeck <linux@roeck-us.net> - 2016-07-14 22:50 +0200
Re: [RFC 1/3] watchdog: change watchdog_need_worker logic Wim Van Sebroeck <wim@iguana.be> - 2016-07-17 21:50 +0200
Re: [RFC 1/3] watchdog: change watchdog_need_worker logic Guenter Roeck <linux@roeck-us.net> - 2016-07-17 22:00 +0200
Re: [RFC 1/3] watchdog: change watchdog_need_worker logic Wim Van Sebroeck <wim@iguana.be> - 2016-07-17 22:40 +0200
[RFC 3/3] watchdog: introduce CONFIG_WATCHDOG_OPEN_DEADLINE Rasmus Villemoes <rasmus.villemoes@prevas.dk> - 2016-07-14 11:30 +0200
Re: [RFC 3/3] watchdog: introduce CONFIG_WATCHDOG_OPEN_DEADLINE Guenter Roeck <linux@roeck-us.net> - 2016-07-14 16:50 +0200
Re: [RFC 3/3] watchdog: introduce CONFIG_WATCHDOG_OPEN_DEADLINE Rasmus Villemoes <rasmus.villemoes@prevas.dk> - 2016-07-15 09:50 +0200
Re: [RFC 3/3] watchdog: introduce CONFIG_WATCHDOG_OPEN_DEADLINE Guenter Roeck <linux@roeck-us.net> - 2016-07-15 16:30 +0200
Re: [RFC 3/3] watchdog: introduce CONFIG_WATCHDOG_OPEN_DEADLINE Rasmus Villemoes <rasmus.villemoes@prevas.dk> - 2016-07-21 00:20 +0200
Re: [RFC 3/3] watchdog: introduce CONFIG_WATCHDOG_OPEN_DEADLINE Guenter Roeck <linux@roeck-us.net> - 2016-07-21 02:40 +0200
csiph-web