[PATCH 3/3] watchdog: honour hw_margin_ms DT property

Rasmus Villemoes rasmus.villemoes at prevas.dk
Mon Mar 16 16:39:44 CET 2020


On 14/03/2020 12.57, Stefan Roese wrote:
> On 13.03.20 17:04, Rasmus Villemoes wrote:
>>   int initr_watchdog(void)
>>   {
>>       u32 timeout = WATCHDOG_TIMEOUT_SECS;
>> @@ -36,6 +42,8 @@ int initr_watchdog(void)
>>       if (CONFIG_IS_ENABLED(OF_CONTROL)) {
>>           timeout = dev_read_u32_default(gd->watchdog_dev, "timeout-sec",
>>                              WATCHDOG_TIMEOUT_SECS);
>> +        reset_period = dev_read_u32_default(gd->watchdog_dev,
>> "hw_margin_ms",
>> +                            4*reset_period)/4;
> 
> Nitpicking: checkpatch will most likely complain about missing spaces
> here.

Right. Want me to resend, or can you fix if/when applying?

Rasmus


More information about the U-Boot mailing list