From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from bh-25.webhostbox.net ([208.91.199.152]:37166 "EHLO bh-25.webhostbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755440AbdCJRfG (ORCPT ); Fri, 10 Mar 2017 12:35:06 -0500 Date: Fri, 10 Mar 2017 09:35:03 -0800 From: Guenter Roeck To: Andy Shevchenko Cc: Wim Van Sebroeck , linux-watchdog@vger.kernel.org Subject: Re: [PATCH v2] watchdog: intel-mid_wdt: Keep watchdog running Message-ID: <20170310173503.GA27630@roeck-us.net> References: <20170310165138.53825-1-andriy.shevchenko@linux.intel.com> <1489165549.20145.197.camel@linux.intel.com> <20170310171633.GA26960@roeck-us.net> <1489166817.20145.201.camel@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1489166817.20145.201.camel@linux.intel.com> Sender: linux-watchdog-owner@vger.kernel.org List-Id: linux-watchdog@vger.kernel.org On Fri, Mar 10, 2017 at 07:26:57PM +0200, Andy Shevchenko wrote: > On Fri, 2017-03-10 at 09:16 -0800, Guenter Roeck wrote: > > On Fri, Mar 10, 2017 at 07:05:49PM +0200, Andy Shevchenko wrote: > > > On Fri, 2017-03-10 at 18:51 +0200, Andy Shevchenko wrote: > > > > > + /* > > > > +  * Make sure the watchdog is serviced. > > > > +  * > > > > +  * The firmware followed by U-Boot leaves the watchdog > > > > running > > > > +  * with the default threshold 60 seconds. Our default > > > > timeout > > > > is > > > > +  * 90 seconds, but internal worker divides it by two, > > > > which > > > > is > > > > +  * 45 seconds and should be enough (less by 15 seconds > > > > than > > > > +  * threshold). > > > > +  */ > > > > + set_bit(WDOG_HW_RUNNING, &wdt_dev->status); > > > > > > Giving one more thought here perhaps more robust will be to start > > > watchdog unconditionally here? > > > > Yes, that would be another option, and it sounds like a good idea. > > Let me know if you want to do that. > > Yes, I prefer it over the rest of solutions. > Ok, I'll wait for v3 of the patch. Thanks, Guenter