Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp803660imm; Fri, 14 Sep 2018 06:37:52 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbKxekrMLvkh8v05Lb7myWNYeeMzuUZclFKvmMbmsO5giWLyvN6GmwTxouKeayFtuZyfwvY X-Received: by 2002:a17:902:d211:: with SMTP id t17-v6mr12510708ply.258.1536932272140; Fri, 14 Sep 2018 06:37:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536932272; cv=none; d=google.com; s=arc-20160816; b=jndLXh5UMg6QpbR3mDrWc3SZ34hF5GyiUa1ZrLz/2iMASCMNv2PIHTOlV1a6FyOShu gcY0vZY3Hkrx9jhr/RMu2+enpPBwtgTqAqFj6sCF83ZlWRoH0bZZktg3Zu7gztq4E6La /HDp0CB+hesAXqs5dPpu4bphAnYXxfwYLI3O0BoZijBnmU6arz8f7p9vx76IEKYkEMOo l/bZa+TPwj0iL+UrJLq5zCoxny3r9dpCKAGWsuvwz4j69pnytVFQxIA/HHuBwEUamOtt vhxrIg2uy6IZz7/4/sSU5tKPZfJ3tdx1hDDBihYr/h8tb5u88fQHemsp/OR2xwcvWj3C mYmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=YUlKWKvUP55wiDo2wPb9ZZSzdJXneXdtyM8E2LuyUfM=; b=xZCz+pXy9UNC54Ry4UOtw8UlB3/ksbQJlYP7GoIpt0VIZM6rOaZw2XNMUZ8b9OtvMl hmXybcgSrftOygezaoE85AACcODOiterEyBAdy19afFrdKIn6TFh1LH8Xm2c3AC01MTh W0FWQ6WJL5N9wSMqVWWcm5hZW9k6kzgRmcuvpmmdD0jtxmbgjB5bXBqGx25IUn5GTqE0 lOnMyHZRdttZl9oQJBYILwaw1unWnA3UZ8OWOrUUAlyyPj8IOGJ43q46tOazPU5RcJo6 g1fUEWLKUR9BRSEDvIee1+0WXvVx9vL/d2kJWOpG9aSSzOuNpYF2BT5Rm6BvQC5omOCW 4DqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=SyVmsij7; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k1-v6si6793421pgh.65.2018.09.14.06.37.30; Fri, 14 Sep 2018 06:37:52 -0700 (PDT) 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=fail header.i=@gmail.com header.s=20161025 header.b=SyVmsij7; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728036AbeINSvk (ORCPT + 99 others); Fri, 14 Sep 2018 14:51:40 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:36319 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727384AbeINSvk (ORCPT ); Fri, 14 Sep 2018 14:51:40 -0400 Received: by mail-pf1-f194.google.com with SMTP id b11-v6so4338882pfo.3; Fri, 14 Sep 2018 06:37:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=YUlKWKvUP55wiDo2wPb9ZZSzdJXneXdtyM8E2LuyUfM=; b=SyVmsij7k+pxgELGieyvXoPfadYjvq23MwkCzUvYs5Jyu2/VMXUZJRnxxxsyellUVO R/rvabVMCK4+gfydLYWBxA6NId/c307YtnpIWs2KsEEkmzUrnMoTMCvLdoVnKN0QEpLq 53lfi4yjz/8z2K6+bSL7cDfpx0AWMyOEXNe9lZ8O8n7PynbMaxfykw5nPurQVgUnzJVX vGfKH3N1CZkl6+mPXwm7uRk0OJAW0bKehySoMwhW/fevtqy9up/uDukBKGyrrGxEonTt 1bCWToaACS7CVjEJTX4SxOK9CH/2ZXQcAZJkAXQkWe70dXjFAfJhacYO9cF94Niv+xVL aRqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=YUlKWKvUP55wiDo2wPb9ZZSzdJXneXdtyM8E2LuyUfM=; b=aWA6C45N3WnRPJbnplo1gcXY4FcA3/zqCT/iTbOy9WaaIICbwYABFln2at2J7XuWYx tSTxwLhrBmIdgHL+ZXgSOltu0O4Ezeabd5bPJEVJ9gFgOPs3NjDeUDOd/MMtM4R6//g7 nzC9Oxjkncm5rPKGFYpg2dqkYJBPVYmej3kyhjgP1iL43NBajD4U76X9fENRNN1z9cYI qIQdSzkqBPf3BOwBwhEU2YIlUMM38Au/6a2ZGE9MasgBD3iFT6S0daM4NXpVN6NRnp8M aG8XmeGEn3bJWRg9I9tIO9QFGRGhLm3PzKpjTdYP3eozQOyrWUtmRtTBVjUUGuJI/AGz wKpw== X-Gm-Message-State: APzg51ASQsKWXfRMQPDeb2g1a0dD+cpTQp9c2ByLSmYW8UQNCwUbIklG np6k0nAU2X+SWpxUzly9ouX8owC+ X-Received: by 2002:a62:3241:: with SMTP id y62-v6mr12721320pfy.4.1536932226665; Fri, 14 Sep 2018 06:37:06 -0700 (PDT) Received: from server.roeck-us.net (108-223-40-66.lightspeed.sntcca.sbcglobal.net. [108.223.40.66]) by smtp.gmail.com with ESMTPSA id k8-v6sm20886207pga.80.2018.09.14.06.37.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Sep 2018 06:37:06 -0700 (PDT) Subject: Re: [PATCH 1/2] watchdog: sama5d4: fix timeout-sec usage To: Romain Izard , Nicolas Ferre , Alexandre Belloni , Wim Van Sebroeck , Marcus Folkesson Cc: linux-arm-kernel@lists.infradead.org, linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180914101339.7382-1-romain.izard.pro@gmail.com> <20180914101339.7382-2-romain.izard.pro@gmail.com> From: Guenter Roeck Message-ID: <0953b2f9-83b1-b57b-2a26-fa0527c8a548@roeck-us.net> Date: Fri, 14 Sep 2018 06:37:04 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180914101339.7382-2-romain.izard.pro@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/14/2018 03:13 AM, Romain Izard wrote: > When using watchdog_init_timeout to update the default timeout value, > an error means that there is no "timeout-sec" in the relevant device > tree node. > > This should not prevent binding of the driver to the device. > > Fixes: 976932e40036 ("watchdog: sama5d4: make use of timeout-secs provided in devicetree") > Signed-off-by: Romain Izard Reviewed-by: Guenter Roeck > --- > drivers/watchdog/sama5d4_wdt.c | 6 +----- > 1 file changed, 1 insertion(+), 5 deletions(-) > > diff --git a/drivers/watchdog/sama5d4_wdt.c b/drivers/watchdog/sama5d4_wdt.c > index 255169916dbb..1e93c1b0e3cf 100644 > --- a/drivers/watchdog/sama5d4_wdt.c > +++ b/drivers/watchdog/sama5d4_wdt.c > @@ -247,11 +247,7 @@ static int sama5d4_wdt_probe(struct platform_device *pdev) > } > } > > - ret = watchdog_init_timeout(wdd, wdt_timeout, &pdev->dev); > - if (ret) { > - dev_err(&pdev->dev, "unable to set timeout value\n"); > - return ret; > - } > + watchdog_init_timeout(wdd, wdt_timeout, &pdev->dev); > > timeout = WDT_SEC2TICKS(wdd->timeout); > >