From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752285AbaCBLwR (ORCPT ); Sun, 2 Mar 2014 06:52:17 -0500 Received: from ns1.pc-advies.be ([83.149.101.17]:60336 "EHLO spo001.leaseweb.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751977AbaCBLwP (ORCPT ); Sun, 2 Mar 2014 06:52:15 -0500 Date: Sun, 2 Mar 2014 12:51:58 +0100 From: Wim Van Sebroeck To: Andrew Chew Cc: linux@roeck-us.net, rob@landley.net, swarren@wwwdotorg.org, thierry.reding@gmail.com, grant.likely@linaro.org, robh+dt@kernel.org, abrestic@chromium.org, dgreid@chromium.org, katierh@chromium.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [PATCH v7 1/1] watchdog: Add tegra watchdog Message-ID: <20140302115158.GT1484@spo001.leaseweb.com> References: <1392408185-15387-1-git-send-email-achew@nvidia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1392408185-15387-1-git-send-email-achew@nvidia.com> User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andrew, > Add a driver for the hardware watchdogs in NVIDIA Tegra SoCs (Tegra30 and > later). This driver will configure one watchdog timer that will reset the > system in the case of a watchdog timeout. > > This driver binds to the nvidia,tegra30-timer device node and gets its > register base from there. > > Signed-off-by: Andrew Chew > Reviewed-by: Guenter Roeck > Tested-by: Stephen Warren > Reviewed-by: Stephen Warren > --- > Changes from v6: > > Removed kref stuff. We can't think of why it's needed here. > > Changes from v5: > > Changed license to GPL v2 per Stephen Warren's guidance. > > Changes from v4: > > Skip the error check from the platform_get_resources() call, because > devm_ioremap_resource() correctly handles the case when res is NULL. > > Changes from v3: > > Applied Cuenter Roeck 's comments. In particular, > since tegra_wdt_start() and tegra_wdt_stop() always return success, skip > error checking for these calls. Also, removed some unnecessarily verbose > logging around which watchdog and timer ID is being used. Fixed typo > regarding the ref and unref callback setup. Removed miscdev stuff. > > Cuenter was right in that the watchdog doesn't need to be stopped prior > to changing the timeout. It is sufficient to just reprogram the watchdog > with the new timeout. > > Tested on T124. > > To do a simple test, "echo 0 > /dev/watchdog0". The target will reset when > two minutes (the default heartbeat interval) have expired since the last > write to /dev/watchdog0. > > Documentation/watchdog/watchdog-parameters.txt | 5 + > drivers/watchdog/Kconfig | 11 + > drivers/watchdog/Makefile | 1 + > drivers/watchdog/tegra_wdt.c | 302 +++++++++++++++++++++++++ > 4 files changed, 319 insertions(+) > create mode 100644 drivers/watchdog/tegra_wdt.c > Patch added to linux-watchdog-next. Kind regards, Wim.