Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1980770pxb; Sun, 17 Oct 2021 02:42:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtlJOySwP1CjoxzFOLB/6fuDfKsb0kF2qRnsvLthbRsvDraN2vhQvMZahMZeJ3xka8mkB7 X-Received: by 2002:a17:90b:4d8e:: with SMTP id oj14mr31934973pjb.237.1634463779423; Sun, 17 Oct 2021 02:42:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634463779; cv=none; d=google.com; s=arc-20160816; b=uQZIZxt5CQ+RSqnYMES5S2hsvskpw2wYDKShACaFKaZmAoG3jB9XV7OTwgfVx8l/jM +LM+M1WXlVSXGFF9PsMF2EeA/bqVmZimHVuv7qTW0J05948GwMZI+ww4VtTxH0AQmPXw Z81TARD8eMIKy07rZBmlJ4Bf1z1BqcQYY2Xh3wCEbuKNmcIY9vW6A9Il0qt9UHvRQwwq ZVXf3mRQz1kvdSuhG8CC5FWMiNuxlLF8jTnO/z+tB33hLzMYnr/BRMYQc+j2nDsRd5CM e7WkOt7N0byLZUZFxhQZF2t6UQo2zYS0/A13TorjTlaBdlrUijL2kc45vznxR8gDoieB yuFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=g6PMx2BfBT5BsHH0joEZrHoPbnjHoi/MtxtdO9L1Juw=; b=ffUIPqubxjzAJweu4Z1Z5io+ZoBvfjZZ/EIJkCrwYDA6bUDvEay8BjbsFVwLyyH3Cg NpSOmNCOdWaRNdKPOZwlXqvfuah1pK0pP+4LtBUwsx+xLn5AooW1OhM8t0yKnz198+Dq YmZ6tZLvjKfkbUcAmnpclqBdr1DRLxy/KwRjtZidsOdPyh7m6hv1o8H7jND8S0mlblO5 HDfahUSkhDjv50IzDF+sIakXHfoUA9ETmQQgrXu/gX/k6GsU+UVEgx1tbH9PbhKaqyWr nZpJRv+yajcI55bu3BHfO3Nkkc0lABRxuY4q7mkGtsgxykzhLeYk8SmS0I4sgJiTF2zi TVnw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d13si15329106pln.299.2021.10.17.02.42.46; Sun, 17 Oct 2021 02:42:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241517AbhJOQpw convert rfc822-to-8bit (ORCPT + 99 others); Fri, 15 Oct 2021 12:45:52 -0400 Received: from hostingweb31-40.netsons.net ([89.40.174.40]:52464 "EHLO hostingweb31-40.netsons.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232499AbhJOQpw (ORCPT ); Fri, 15 Oct 2021 12:45:52 -0400 Received: from [77.244.183.192] (port=62388 helo=[192.168.178.41]) by hostingweb31.netsons.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1mbQJ5-0058AN-VD; Fri, 15 Oct 2021 18:43:44 +0200 Subject: Re: [PATCH 7/8] watchdog: max77714: add driver for the watchdog in the MAX77714 PMIC To: Guenter Roeck , linux-kernel@vger.kernel.org Cc: Lee Jones , Rob Herring , Alessandro Zummo , Alexandre Belloni , Chanwoo Choi , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Wim Van Sebroeck , devicetree@vger.kernel.org, linux-rtc@vger.kernel.org, linux-watchdog@vger.kernel.org, Chiwoong Byun , Laxman Dewangan References: <20211011155615.257529-1-luca@lucaceresoli.net> <20211011155615.257529-8-luca@lucaceresoli.net> <8ce6ed51-7963-0279-f771-66226e6b5a6d@roeck-us.net> From: Luca Ceresoli Message-ID: Date: Fri, 15 Oct 2021 18:43:43 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <8ce6ed51-7963-0279-f771-66226e6b5a6d@roeck-us.net> Content-Type: text/plain; charset=utf-8 Content-Language: it-IT Content-Transfer-Encoding: 8BIT X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hostingweb31.netsons.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lucaceresoli.net X-Get-Message-Sender-Via: hostingweb31.netsons.net: authenticated_id: luca@lucaceresoli.net X-Authenticated-Sender: hostingweb31.netsons.net: luca@lucaceresoli.net X-Source: X-Source-Args: X-Source-Dir: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 11/10/21 19:17, Guenter Roeck wrote: > On 10/11/21 8:56 AM, Luca Ceresoli wrote: [...] >> diff --git a/drivers/watchdog/max77714_wdt.c >> b/drivers/watchdog/max77714_wdt.c >> new file mode 100644 >> index 000000000000..2d468db849f9 >> --- /dev/null >> +++ b/drivers/watchdog/max77714_wdt.c >> @@ -0,0 +1,171 @@ >> +// SPDX-License-Identifier: GPL-2.0-only >> +/* >> + * Maxim MAX77714 Watchdog Driver >> + * >> + * Copyright (C) 2021 Luca Ceresoli >> + * Author: Luca Ceresoli >> + */ >> + >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> + >> +struct max77714_wdt { >> +    struct device        *dev; >> +    struct regmap        *rmap; >> +    struct watchdog_device    wd_dev; >> +}; >> + >> +/* Timeout in seconds, indexed by TWD bits of CNFG_GLBL2 register */ >> +unsigned int max77714_margin_value[] = { 2, 16, 64, 128 }; > > static Absolutely. And const too. Will fix. -- Luca