Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756858Ab0GXD6d (ORCPT ); Fri, 23 Jul 2010 23:58:33 -0400 Received: from pfepa.post.tele.dk ([195.41.46.235]:60129 "EHLO pfepa.post.tele.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754602Ab0GXD6c (ORCPT ); Fri, 23 Jul 2010 23:58:32 -0400 Date: Sat, 24 Jul 2010 05:58:26 +0200 From: Sam Ravnborg To: David Daney Cc: linux-mips@linux-mips.org, ralf@linux-mips.org, wim@iguana.be, linux-kernel@vger.kernel.org, Andrew Morton , Russell King , Tony Lindgren , Marc Zyngier , Thierry Reding Subject: Re: [PATCH 7/7] watchdog: Add watchdog driver for OCTEON SOCs. Message-ID: <20100724035826.GA27516@merkur.ravnborg.org> References: <1279935707-3997-1-git-send-email-ddaney@caviumnetworks.com> <1279935707-3997-8-git-send-email-ddaney@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1279935707-3997-8-git-send-email-ddaney@caviumnetworks.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2403 Lines: 91 Hi David. In general a very nicely commented piece of code! A few nits... > diff --git a/drivers/watchdog/Makefile b/drivers/watchdog/Makefile > index 72f3e20..4e7179b 100644 > --- a/drivers/watchdog/Makefile > +++ b/drivers/watchdog/Makefile > @@ -114,6 +114,8 @@ obj-$(CONFIG_PNX833X_WDT) += pnx833x_wdt.o > obj-$(CONFIG_SIBYTE_WDOG) += sb_wdog.o > obj-$(CONFIG_AR7_WDT) += ar7_wdt.o > obj-$(CONFIG_TXX9_WDT) += txx9wdt.o > +obj-$(CONFIG_OCTEON_WDT) += octeon-wdt.o > +octeon-wdt-objs := octeon-wdt-main.o octeon-wdt-nmi.o The use of foo-objs := ... is considered old-school. Use: octeon-wdt-y := octeon-wdt-main.o octeon-wdt-nmi.o It is the same functionality. > + > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include People have started to use the "inverse christmas tree" for include files. But you sort is alphabetically which is also good. The "inverse christmas tree" would look like this: #include #include #include #include #include #include #include #include #include #include #include #include Both styles are fine so pick what you like. > +module_param(heartbeat, int, 0444); module_param(heartbeat, int, S_IRUSR | S_IRGRP | S_IROTH); or even the shorter: module_param(heartbeat, int, S_IRUGO); This is a bit more descriptive - but still the same functionality. > +module_param(nowayout, int, 0444); ditto. > +void octeon_wdt_nmi_stage3(uint64_t reg[32]) > +{ > + uint64_t i; The kernel version of this type is "u64". We usually say that the stdint types belongs to userspace. But it is used in many places so no big deal. Note: you use stdint types in several places, but there is no need to repeat the comment. Sam -- 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/