Re: What to set in struct watchdog_device::bootstatus?

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

 



On 2/8/19 2:52 AM, Uwe Kleine-König wrote:
Hello,

it's unclear to me, which bits I am supposed to set in the bootstatus
member of struct watchdog_device at probe time.

The i.MX watchdog differentiates the following reset causes:

  - Power On
None.

  - external reset

None.

  - watchdog timeout

WDIOF_CARDRESET

  - software reset using a bit in the watchdog register set

(Not all i.MX variants implement all bits according to the respective
reference manuals.)

Should "Power On" result in setting WDIOF_POWERUNDER?

No.

Should "software reset [...]" result in WDIOF_CARDRESET?

That would be the best fit if you want a bit to be set, but it would be
misleading since it would suggest that the watchdog fired.

Should "external reset" result in WDIOF_EXTERN1? (I guess that no)

No.

Overall, the bits are only to be set if the reset was triggered by
the watchdog controller.

Guenter



[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