Received: by 10.223.185.116 with SMTP id b49csp1957002wrg; Thu, 22 Feb 2018 06:02:56 -0800 (PST) X-Google-Smtp-Source: AH8x227T1wOyASZDNLsAnJqBbTq8yeoLkv+jSxBXgVrMCbbtdB0vTafSf9PMneYiBsp3B3FM5XT0 X-Received: by 10.99.117.6 with SMTP id q6mr5729457pgc.146.1519308176138; Thu, 22 Feb 2018 06:02:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519308176; cv=none; d=google.com; s=arc-20160816; b=Mg8a9Ov6vk/6ZjdcW88JwcxaiCcpXC7mbnDDluab649qYWapcr5CCeqQEZh7kC5yn8 myJO4G3Su3r9fgUl2wOsYAggrZhksNivcRlhZXMTR4wvjcZj8FTVY2iPfBYkQTdopt0K wo1oLjMMD68gMceWWTQ6XXG2LBwjbAtulkNHKNEJDhd/vqCcBWHBK+jCx4t48bqkXJ+Z oT6rkgbjd14DuZIZc/X/2dncVYP7AZ2+DCrTXTgipc5r55AviF9/kWp3TBN0gbMYrTpZ RCDO7HC0B4NYxBTCnH7xaIfnboIIXJ5va09mO+7+o0zkAXqIsZZwhUgLhk0snT7jOkf4 jk/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=2gYDbINDY8+vde0PoKB1iLD8Kmrn6iXs9aelj1AafIg=; b=C9iGt1vjoFPsareeRjgnppejp0/P5gtKRQVd8B0mB9aOlRu2eiBqJFLyDGQ+239VYf wReBJLxxwKau68UrkGgoWAEOvNGFO+fYyhGt4NBd8MjrMI7HWwHAn6iLoRo0xf9C+L5L dDjJz83hheJN8WzjGfIFvZBCFI/DXO3yqpkkjHaE3fe6bBo/BMI8SdOjuzBxs31bSwo3 DORMYHu+Ts3JlZ6pTzrwf3XFv3HPEwRudsgVY0gMlHd4/9bRHEyXdDNQMd13qMbCqgr0 X2TTfCFGL5fgulzWmEf1+codjCTMMisjp5xO4cdjsFU1n7MpwNs5vL8cVlvZ4m4U8mIs gAkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RaMx539F; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r20si66440pgu.423.2018.02.22.06.02.40; Thu, 22 Feb 2018 06:02:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RaMx539F; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932718AbeBVOAv (ORCPT + 99 others); Thu, 22 Feb 2018 09:00:51 -0500 Received: from mail-it0-f66.google.com ([209.85.214.66]:37858 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932582AbeBVOAt (ORCPT ); Thu, 22 Feb 2018 09:00:49 -0500 Received: by mail-it0-f66.google.com with SMTP id d10so6595041itj.2 for ; Thu, 22 Feb 2018 06:00:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=2gYDbINDY8+vde0PoKB1iLD8Kmrn6iXs9aelj1AafIg=; b=RaMx539FNB5HbF6ihNysbLX8RnwHW3C/2rvKfn1DBrYRV5dCWqf6qRll6xR8agcf2M CB7iJHGoXtHLLY2goOPOYUlTOaANBU2fqBq/jJCbnNA+DhLPXV9cW6zfOJEMR/YhXxDu GyphwulU+U1Vvpnb4GDja7Cvce5DzclK7Asy0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=2gYDbINDY8+vde0PoKB1iLD8Kmrn6iXs9aelj1AafIg=; b=lay+S4hTq1vFSf/ztnCeEnwXA0/Xbwu7mRlaGGQ4ZgQfHbrK3iJYjohyDzgsy42dAJ /Ga1DW1GobaMDX6c03njayDy4xa0FRTGnsDHg1FIcFoTie/hZTYN6OLYIFDo3xzT6MBG YgRYp+yGcgl4wF1Wdv1M89dbXFKnEDAOUlWib7P7n4N5Hh8ZXl1PM9r+PPJM89UwqksR VpF/gOJI5b+tmSbdFE9lObgdToQxweQhMgnhJ/PO7KZH/YOcIb+tP104SR4Sn/b5GyE9 aa2TMtUeduY4LapqPAXQIxLYMKiYijTuPg1qqETcoZXhNWkb7LCEFN38tlKSWH49vmQ8 +8NQ== X-Gm-Message-State: APf1xPAnE1OLEHs2pGX6i52yuT+DgxisBwyPCijHz45IvRTi3FLkq1a/ ZvJavO3Uh1WV+XGU3YgvnH6k/yvModd0lSjkcesCKg== X-Received: by 10.36.240.72 with SMTP id p8mr7981428iti.70.1519308048263; Thu, 22 Feb 2018 06:00:48 -0800 (PST) MIME-Version: 1.0 Received: by 10.79.230.25 with HTTP; Thu, 22 Feb 2018 06:00:47 -0800 (PST) In-Reply-To: <20180210091911.3644-7-marcus.folkesson@gmail.com> References: <20180210091911.3644-1-marcus.folkesson@gmail.com> <20180210091911.3644-7-marcus.folkesson@gmail.com> From: Linus Walleij Date: Thu, 22 Feb 2018 15:00:47 +0100 Message-ID: Subject: Re: [PATCH v2 7/7] watchdog: coh901327: make use of timeout-secs provided in devicetree To: Marcus Folkesson Cc: Wim Van Sebroeck , Guenter Roeck , Rob Herring , Mark Rutland , Carlo Caione , Kevin Hilman , Matthias Brugger , Barry Song , Maxime Ripard , Chen-Yu Tsai , Vladimir Zapolskiy , Sylvain Lemieux , Nicolas Ferre , Alexandre Belloni , LINUXWATCHDOG , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux ARM , "open list:ARM/Amlogic Meson..." , "linux-kernel@vger.kernel.org" , "moderated list:ARM/Mediatek SoC support" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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