From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752704AbbDCKke (ORCPT ); Fri, 3 Apr 2015 06:40:34 -0400 Received: from v094114.home.net.pl ([79.96.170.134]:60735 "HELO v094114.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752530AbbDCKkc (ORCPT ); Fri, 3 Apr 2015 06:40:32 -0400 From: "Rafael J. Wysocki" To: Guenter Roeck , Wim Van Sebroeck Cc: linux-watchdog@vger.kernel.org, Linux Kernel Mailing List , Linux PM list , Aubrey Li , Borun Fu Subject: Re: [PATCH] PM / watchdog: iTCO: stop watchdog during system suspend Date: Fri, 03 Apr 2015 13:04:47 +0200 Message-ID: <1741516.p64k4HnZLy@vostro.rjw.lan> User-Agent: KMail/4.11.5 (Linux/3.19.0+; KDE/4.11.5; x86_64; ; ) In-Reply-To: <551E29B7.7050801@roeck-us.net> References: <2017660.nPaHVT8bW3@vostro.rjw.lan> <2928815.XiLbVYtUVn@vostro.rjw.lan> <551E29B7.7050801@roeck-us.net> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday, April 02, 2015 10:48:39 PM Guenter Roeck wrote: > On 04/02/2015 03:04 PM, Rafael J. Wysocki wrote: > [ ... ] > > > > --- > > From: Rafael J. Wysocki > > Subject: PM / watchdog: iTCO: stop watchdog during system suspend > > > > If the target sleep state of the system is not an ACPI sleep state > > (S1, S2 or S3), the TCO watchdog needs to be stopped during system > > suspend, because it may not be possible to ping it any more after > > timekeeping has been suspended (suspend-to-idle does that for > > one example). > > > > For this reason, provide ->suspend_noirq and ->resume_noirq > > callbacks for the iTCO watchdog driver and use them to stop > > and restart the watchdog during system suspend and resume, > > respectively, if the system is not going to enter an ACPI > > sleep state (in which case the watchdog will be stopped > > by the platform firmware before the state is entered). > > > > Reported-by: Borun Fu > > Signed-off-by: Rafael J. Wysocki > > Reviewed-by: Guenter Roeck Thanks! I'll take it into the PM tree, unless anyone objects. Rafael