From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Date: Thu, 20 Oct 2016 18:17:38 +0300 From: Mika Westerberg To: "Rafael J. Wysocki" Cc: "linux-watchdog@vger.kernel.org" , Wim Van Sebroeck , Guenter Roeck , "Rafael J. Wysocki" , ACPI Devel Maling List Subject: Re: [PATCH] watchdog: wdat_wdt: Ping the watchdog on resume Message-ID: <20161020151738.GP24289@lahna.fi.intel.com> References: <20161020150336.97791-1-mika.westerberg@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-ID: On Thu, Oct 20, 2016 at 05:05:22PM +0200, Rafael J. Wysocki wrote: > On Thu, Oct 20, 2016 at 5:03 PM, Mika Westerberg > wrote: > > It turns out we need to ping the watchdog hardware on resume when we > > re-program it. Otherwise this results inadvertent reset to trigger right > > after the resume is completed. > > > > Signed-off-by: Mika Westerberg > > Is there a Fixes: tag missing here? Oops, right. Sorry about that. It should be: Fixes: 058dfc767008 ("ACPI / watchdog: Add support for WDAT hardware watchdog") (I can resend the patch as well, if needed with the Fixes tag). > > --- > > drivers/watchdog/wdat_wdt.c | 4 ++++ > > 1 file changed, 4 insertions(+) > > > > diff --git a/drivers/watchdog/wdat_wdt.c b/drivers/watchdog/wdat_wdt.c > > index e473e3b23720..6d1fbda0f461 100644 > > --- a/drivers/watchdog/wdat_wdt.c > > +++ b/drivers/watchdog/wdat_wdt.c > > @@ -499,6 +499,10 @@ static int wdat_wdt_resume_noirq(struct device *dev) > > ret = wdat_wdt_enable_reboot(wdat); > > if (ret) > > return ret; > > + > > + ret = wdat_wdt_ping(&wdat->wdd); > > + if (ret) > > + return ret; > > } > > > > return wdat_wdt_start(&wdat->wdd); > > -- > > Thanks, > Rafael