Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752595AbbBWKZh (ORCPT ); Mon, 23 Feb 2015 05:25:37 -0500 Received: from mail-wg0-f44.google.com ([74.125.82.44]:63856 "EHLO mail-wg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752543AbbBWKZe (ORCPT ); Mon, 23 Feb 2015 05:25:34 -0500 Date: Mon, 23 Feb 2015 10:25:26 +0000 From: Peter Griffin To: Lee Jones Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, kernel@stlinux.com, rtc-linux@googlegroups.com, wim@iguana.be, linux@roeck-us.net, linux-watchdog@vger.kernel.org Subject: Re: [STLinux Kernel] [PATCH v3 5/8] watchdog: st_wdt: Add new driver for ST's LPC Watchdog Message-ID: <20150223102526.GB14142@griffinp-ThinkPad-X1-Carbon-2nd> References: <1424260154-12868-1-git-send-email-lee.jones@linaro.org> <1424260154-12868-6-git-send-email-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1424260154-12868-6-git-send-email-lee.jones@linaro.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 783 Lines: 30 Hi Lee, > +#ifdef CONFIG_PM_SLEEP > +static int st_wdog_suspend(struct device *dev) > +{ > + struct st_wdog *st_wdog = watchdog_get_drvdata(&st_wdog_dev); > + > + if (watchdog_active(&st_wdog_dev)) > + st_wdog_stop(&st_wdog_dev); > + > + st_wdog_setup(st_wdog, false); I was expecting the suspend / resume callbacks would be disabling / enabling the IP clock. Is there a reason why it doesn't? >From looking at the code by this point the watchdog has already been disabled so gating the IP seems reasonable. regards, Peter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/