From: Guenter Roeck <linux@roeck-us.net>
To: Xiubo Li <Li.Xiubo@freescale.com>
Cc: wim@iguana.be, groeck7@gmail.com, linux-watchdog@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] watchdog: imx2_wdt: Add power management support.
Date: Mon, 22 Sep 2014 12:54:25 -0700 [thread overview]
Message-ID: <20140922195425.GA2071@roeck-us.net> (raw)
On Mon, Sep 22, 2014 at 06:00:52PM +0800, Xiubo Li wrote:
> Add power management operations(suspend and resume) as part of
> dev_pm_ops for IMX2 watchdog driver.
>
> Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
> ---
> drivers/watchdog/imx2_wdt.c | 47 +++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 47 insertions(+)
>
> diff --git a/drivers/watchdog/imx2_wdt.c b/drivers/watchdog/imx2_wdt.c
> index 68c3d37..941c36f 100644
> --- a/drivers/watchdog/imx2_wdt.c
> +++ b/drivers/watchdog/imx2_wdt.c
> @@ -295,6 +295,52 @@ static void imx2_wdt_shutdown(struct platform_device *pdev)
> }
> }
>
> +#ifdef CONFIG_PM_SLEEP
> +/* Disable watchdog if it is active during suspend */
> +static int imx2_wdt_suspend(struct device *dev)
> +{
> + struct watchdog_device *wdog = dev_get_drvdata(dev);
> + struct imx2_wdt_device *wdev = watchdog_get_drvdata(wdog);
> +
> + imx2_wdt_set_timeout(wdog, IMX2_WDT_MAX_TIME);
> + imx2_wdt_ping(wdog);
> +
> + /* Watchdog has been stopped but IP block is still running */
> + if (!watchdog_active(&wdog) && imx2_wdt_is_running(wdev))
Turns out this has a bug.
s/&wdog/wdog/
Please resubmit.
Thanks,
Guenter
next reply other threads:[~2014-09-22 19:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-22 19:54 Guenter Roeck [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-09-22 10:00 Xiubo Li
2014-09-22 16:17 ` Guenter Roeck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140922195425.GA2071@roeck-us.net \
--to=linux@roeck-us.net \
--cc=Li.Xiubo@freescale.com \
--cc=groeck7@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=wim@iguana.be \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome