Re: [PATCH] 2.6.0-test4 - Watchdog patches

From: Wim Van Sebroeck
Date: Wed Sep 03 2003 - 15:31:27 EST


Hi Justin,

> There is *no point* making these module parameters. There is no other
> watchdog that works in exactly the same way but using different io
> ports. If there was this still wouldnt be the sensible way to do it.

Since I copied this part of Rob's watchdog-patch, I'll let Rob answer this one.

> > + if (timeout < 1 || timeout > 63) {
> > + timeout = WD_TIMO;
> > + printk (KERN_INFO PFX "timeout value must be 1<=x<=255, using %d\n",
> > + timeout);
>
> where did that 63 come from? should be 255.

Thanks, I'll fix this (And I'll take out the module_param's for wdt_start and wdt_stop
also).

> Also, generally, please cc authors when you send patches. And making the comments the
> same in the watchdog drivers is a complete waste of time. If you want to reduce
> the amount of duplicated code in the drivers you could make a watchdog_ops interface
> for almost all of them.

Sorry Justin, I normally cc the authors, but this time I indeed overlooked it. Sorry
for that. Concerning the duplicated code: this is done intentionally; Rob and myself
won't to get the watchdog-drivers all at the same level so that we can then remove the
duplicate code and have some generic watchdog code that can be used (I allready have
code for it, but I'm redoing the temperature stuff). After that we plan to foresee sysfs
interfacing for the drivers (can be done easily if you use the generic watchdog code).
the generic code indeed uses a watchdog_ops like interface. Hope this clarifies things
a bit more. (So I try to do everything via a "phased" approach rather then go directly
for the generic watchdog model code).

Greetings,
Wim.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/