From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753990AbaBLSwi (ORCPT ); Wed, 12 Feb 2014 13:52:38 -0500 Received: from avon.wwwdotorg.org ([70.85.31.133]:33294 "EHLO avon.wwwdotorg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753393AbaBLSwf (ORCPT ); Wed, 12 Feb 2014 13:52:35 -0500 Message-ID: <52FBC2EF.4020000@wwwdotorg.org> Date: Wed, 12 Feb 2014 11:52:31 -0700 From: Stephen Warren User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Andrew Chew , linux@roeck-us.net, wim@iguana.be, rob@landley.net, thierry.reding@gmail.com, grant.likely@linaro.org, robh+dt@kernel.org, abrestic@chromium.org, dgreid@chromium.org, katierh@chromium.org CC: linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [PATCH v5 1/1] watchdog: Add tegra watchdog References: <1391738086-29142-1-git-send-email-achew@nvidia.com> In-Reply-To: <1391738086-29142-1-git-send-email-achew@nvidia.com> X-Enigmail-Version: 1.5.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/06/2014 06:54 PM, Andrew Chew wrote: > 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. Tested-by: Stephen Warren Briefly, Reviewed-by: Stephen Warren Just a couple small comments though. > diff --git a/drivers/watchdog/tegra_wdt.c b/drivers/watchdog/tegra_wdt.c > +static void tegra_wdt_ref(struct watchdog_device *wdd) > +{ > + struct tegra_wdt *wdt = watchdog_get_drvdata(wdd); > + > + kref_get(&wdt->kref); > +} > + > +static void tegra_wdt_unref(struct watchdog_device *wdd) > +{ > + struct tegra_wdt *wdt = watchdog_get_drvdata(wdd); > + > + kref_put(&wdt->kref, tegra_wdt_release_resources); > +} I forget why these were needed; they seem to do nothing. > +MODULE_LICENSE("GPL"); That should be "GPL v2" according to the license header in the file.