Re: [PATCH v2] watchdog: omap_wdt: Add 'early_disable' module parameter

From: Guenter Roeck
Date: Fri Sep 19 2014 - 00:12:59 EST


On 09/17/2014 08:22 AM, Rostislav Lisovy wrote:
Hello Guenter;
Thanks for the review.

On Ãt, 2014-09-16 at 08:49 -0700, Guenter Roeck wrote:
How do you know that the watchdog was already running ?
Seems to me you are just making an assumption that it is running
without really knowing for sure.

You are definitely right, however the OMAP Watchdog seems to be such a
sophisticated piece of hardware that there is no possible way how to
determine if it is running or not (sampling timer counter twice and
comparing both values is they differ is stupid).

How about reading the OMAP_WATCHDOG_SPR register ?

Either case, you can not issue a message about the watchdog being
stopped or started if you don't know if it was actually stopped
or started. Also, if you don't really know if the watchdog was
stopped or started, all you can do is to either stop or start it,
without judgment about its previous condition.

Guenter

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