Re: [PATCH v9 5/9] platform: cznic: turris-omnia-mcu: Add support for MCU watchdog

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, May 08, 2024 at 12:31:14PM +0200, Marek Behún wrote:
> Add support for the watchdog mechanism provided by the MCU.

...

> +	return omnia_cmd_write_u16(mcu->client, OMNIA_CMD_SET_WDT_TIMEOUT,
> +				   timeout * 10);

DECI (from units.h)

...

> +	return timeleft / 10;

Ditto.

...

> +	mcu->wdt.max_timeout = 6553; /* 65535 deciseconds */

Ditto.

	mcu->wdt.max_timeout = 65536 / DECI;

(and no need in a comment)

-- 
With Best Regards,
Andy Shevchenko






[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux