[PATCH 1/3] watchdog: Add support for the Freescale MXC watchdog

Russell King - ARM Linux linux at arm.linux.org.uk
Sat Mar 20 10:06:25 EDT 2010


On Fri, Mar 19, 2010 at 06:13:27PM +0300, Vladimir Zapolskiy wrote:
> +/* The watchdog found on MXC chips cannot be disabled. */
> +static int mxc_wdt_release(struct inode *inode, struct file *file)
> +{
> +        struct mxc_wdt *wdt = file->private_data;
> +
> +        /* disable the watchdog timer unless NOWAYOUT is defined. */
> +#ifndef CONFIG_WATCHDOG_NOWAYOUT
> +        mxc_wdt_disable(wdt);
> +#else
> +        printk(KERN_CRIT "MXC watchdog: unexpected close, timer will not stop\n");
> +#endif
> +        clear_bit(0, &wdt->status);
> +
> +        clk_disable(wdt->clk);

You're sure that disabling the watchdog clock won't disable the watchdog
itself?



More information about the linux-arm-kernel mailing list