Re: [PATCH] watchdog: f71808e: maintain watchdog timeout occurred flag

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

 



On Thu, Jun 11, 2020 at 07:18:38PM +0200, Ahmad Fatoum wrote:
> If we experience a watchdog reset, the indicating flag should persist
> till the Linux driver had a chance to see it.
> 
> The flag bit is special however in that writing 1 clears the bit and
> writing 0 keeps it intact, i.e. :
> 
> Bit
> read written  result
>   0     0     = 0
>   1     0     = 1
>   0     1     = 0
>   1     1     = 0
> 
> So in the bootloader, we should write a zero always. The OS on the
> other hand can either write 1 or the old value after reading to
> clear the flag.
> 
> Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>
> ---
>  drivers/watchdog/f71808e_wdt.c | 59 +++++++++++++++++++++++-----------
>  1 file changed, 40 insertions(+), 19 deletions(-)

Applied, thanks

Sascha

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux