From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752429AbdEHN1a (ORCPT ); Mon, 8 May 2017 09:27:30 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:35333 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750905AbdEHN12 (ORCPT ); Mon, 8 May 2017 09:27:28 -0400 Date: Mon, 8 May 2017 08:27:25 -0500 From: Rob Herring To: Sebastien Bourdelin Cc: linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, kernel@savoirfairelinux.com, linux@roeck-us.net, linus.walleij@linaro.org, shawnguo@kernel.org, fabio.estevam@nxp.com, mark@embeddedarm.com, kris@embeddedarm.com Subject: Re: [PATCH v3 6/6] watchdog: ts4600: add driver for TS-4600 watchdog Message-ID: <20170508132725.c3fnbz2lwz3khs7u@rob-hp-laptop> References: <20170505193259.16517-1-sebastien.bourdelin@savoirfairelinux.com> <20170505193259.16517-7-sebastien.bourdelin@savoirfairelinux.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170505193259.16517-7-sebastien.bourdelin@savoirfairelinux.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 05, 2017 at 03:32:59PM -0400, Sebastien Bourdelin wrote: > This watchdog is instantiated in a FPGA and can only be access using a > GPIOs bit-banged bus, called the NBUS by Technologic Systems. > The watchdog is made of only one register, called the feed register. > Writing to this register will re-arm the watchdog for a given time (and > enable it if it was disable). It can be disabled by writing a special > value into it. > > Signed-off-by: Sebastien Bourdelin > --- > Changes v2 -> v3: > - rebase on master > - remove the timeout table to simplify the logic (suggested by > Guenter Roeck) > - fix the set_timeout function (suggested by Guenter Roeck) > - hardcode the max_hw_heartbeat_ms value based on the ts4600 max > timeout value supported (suggested by Guenter Roeck) > - remove the max_timeout usage and set a default timeout value > (suggested by Guenter Roeck) > - use the devm_watchdog_register_device function instead of > watchdog_register_device (suggested by Guenter Roeck) > > Changes v1 -> v2: > - rebase on master > - retrieve the ts_nbus instantiated by the parent node (suggested by > Linus Walleij) > - rename the wdt by watchdog in the device tree and in the > documentation (suggested by Rob Herring) > - add a dependency to the TS_NBUS driver in the Kconfig (suggested by > Guenter Roeck) > - simplify the set_timeout function (suggested by Guenter Roeck) > - use the max_hw_heartbeat_ms callback instead of the max_timeout > callback (suggested by Guenter Roeck) > --- > .../devicetree/bindings/watchdog/ts4600-wdt.txt | 16 ++ > arch/arm/boot/dts/imx28-ts4600-common.dtsi | 5 + Please add acks when posting new versions. I acked v2. > drivers/watchdog/Kconfig | 11 ++ > drivers/watchdog/Makefile | 1 + > drivers/watchdog/ts4600_wdt.c | 185 +++++++++++++++++++++ > 5 files changed, 218 insertions(+) > create mode 100644 Documentation/devicetree/bindings/watchdog/ts4600-wdt.txt > create mode 100644 drivers/watchdog/ts4600_wdt.c