From mboxrd@z Thu Jan 1 00:00:00 1970 From: Linus Walleij Subject: Re: [PATCH v2 7/7] watchdog: coh901327: make use of timeout-secs provided in devicetree Date: Thu, 22 Feb 2018 15:00:47 +0100 Message-ID: References: <20180210091911.3644-1-marcus.folkesson@gmail.com> <20180210091911.3644-7-marcus.folkesson@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20180210091911.3644-7-marcus.folkesson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+glpam-linux-mediatek=m.gmane.org-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org To: Marcus Folkesson Cc: Mark Rutland , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Barry Song , "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , LINUXWATCHDOG , Kevin Hilman , Nicolas Ferre , "moderated list:ARM/Mediatek SoC support" , Chen-Yu Tsai , Vladimir Zapolskiy , Matthias Brugger , Wim Van Sebroeck , Rob Herring , Alexandre Belloni , Linux ARM , Sylvain Lemieux , Carlo Caione , "open list:ARM/Amlogic Meson..." , Maxime Ripard List-Id: devicetree@vger.kernel.org On Sat, Feb 10, 2018 at 10:19 AM, Marcus Folkesson wrote: > watchdog_init_timeout() will allways pick timeout_param since it > defaults to a valid timeout. > > Following best practice described in > Documentation/watchdog/watchdog-kernel-api.txt to make use of > the parameter logic. > > Signed-off-by: Marcus Folkesson > --- > > v2: > - Set .timeout in coh901327_wdt structure declaration. > - Set .min_timeout to 1 instead of 0. I could not find a datasheet > for coh901327, so I'm not sure if 0 is valid. However, 0 seems > wrong to me and most driver has 1 as min value. If it should > be 0, please let me know and I have to set another initial > value for margin. Reviewed-by: Linus Walleij Yours, Linus Walleij