Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp21236pxb; Tue, 2 Mar 2021 17:41:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJyHAvaV8JLfemHVZggg5OARd+o3+KkLApr5tfwFQvqFPPQ527yteUolemi+4uoP/IB3f6+b X-Received: by 2002:a17:906:7797:: with SMTP id s23mr12891079ejm.98.1614735701840; Tue, 02 Mar 2021 17:41:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614735701; cv=none; d=google.com; s=arc-20160816; b=d5MLq9NI9Q3Ravt51ymB4ko1nzLA60U0vehD1RGziIq4g1yDBctY/Z+9fBX94bvlkq PUQa1NJUcEd153ztPx/rT+6B6n7td3UsgM0goFi+/Am67DUr+dYrSVXFWHtAHrxKV5pL xEC2C8oExuKcIC9v85Qx0l+9FoJEkzNKHsb9dxRwoYuXtsMPIMBc6YEdxDyorIHgoEs1 QDmLjLqEQ53IAQIRoIfXS2InD7USXmZc4Xb/BvV4gvE63gG4J7NOdmvi5ayk0Bp0cW6v fd2cWDR4LqKRFW7wA1gynXKmoYxBY+1+aLb0nuRCwLIMik/6LKXIGt1uUiykKmcz9wL1 7R4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=JrTSFd2l+ALO1EVSf5BkLgkET6i4Bb0Mk6vppda7rMo=; b=Gp2DXltM6OSRmrmkjmEmhsqk4JABbL6xTwiIyxDMAP3yHv/dNRMc856YsDdfU+kkp2 vDd6itJT2SWnVy+gEV9Jm2HCLnwi0bAabGP82tEWSNKTcj6u3QIJ8KIwpmm9YaZbvZmC pi/ZJ7nK+jKJL93dl5yCdz+tYH+rj+XaMOO4kQirSUzbVUcHY3DWtw8ps68ufIqqUcc0 OhJ0YoFexPFifcEffVlt8mt+xszvABWrbt2tKQs2sYxv1+p/ARwrrVJea0i3sPr+L/Yy fFun1mOPXpH/R+ZW5fq9jCMljRFXhQkeEFxhjx5ssvkT15CzuK/Yzb3uZBVJeQf6ILY/ bSzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LgMxrB4S; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b1si14589129ejb.401.2021.03.02.17.41.18; Tue, 02 Mar 2021 17:41:41 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LgMxrB4S; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234218AbhCAJr4 (ORCPT + 99 others); Mon, 1 Mar 2021 04:47:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:49874 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234104AbhCAJpq (ORCPT ); Mon, 1 Mar 2021 04:45:46 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7292E601FE; Mon, 1 Mar 2021 09:45:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614591905; bh=+kVuRMmJFA3NeZk2H02s5z77HTpE92uBU8CQsiK21zs=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=LgMxrB4SnOanZzGeiI5celQIQV1vl6N9orOE5JGd/h5qiYvPQpkj/nr3ASZKtGnBj cHO72uDzTQ0VVPkY6iUDCCPGDK1bEKT7rSXxZQ78tbrROe/sk1Tpxu3Jks8k2kHUBK DWxtB6VmJWbtNoGI/q6E86+bd5PoUb8fLTuiPR6HFVVR6i7W7Yxw7iQC4FnSPmR5Eq ggL8W6JNfRZT1rSlwtSXZnx5K6mVJx0gR5GFJwQ8JN+1Q/ADEyIBqVxA9StpE5o32Q BZKximWs7IaSZjwOMFW5MEdd5sc9Pd7ZycWru39dYcFCby/rhegy1Y6j+FL7t0NaSf 2ksqojn0V+gnw== Received: by mail-ot1-f53.google.com with SMTP id h22so15858265otr.6; Mon, 01 Mar 2021 01:45:05 -0800 (PST) X-Gm-Message-State: AOAM532E0dezNLa9zQCM9HAACx11SdCp86sH+6zjVXxmlTjL4cKrGQgJ mQbO4kNc6BdcDxj7mRTplq1SHP//g8FweEbYzig= X-Received: by 2002:a9d:6b8b:: with SMTP id b11mr12801036otq.210.1614591904691; Mon, 01 Mar 2021 01:45:04 -0800 (PST) MIME-Version: 1.0 References: <20210226141411.2517368-1-linux@rasmusvillemoes.dk> <2208f466-e509-6bbe-0358-34effb965610@roeck-us.net> <285d739a-b343-c411-5461-0fe1f44177a5@rasmusvillemoes.dk> In-Reply-To: <285d739a-b343-c411-5461-0fe1f44177a5@rasmusvillemoes.dk> From: Arnd Bergmann Date: Mon, 1 Mar 2021 10:44:48 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/2] add ripple counter dt binding and driver To: Rasmus Villemoes Cc: Guenter Roeck , Greg Kroah-Hartman , Rob Herring , DTML , "linux-kernel@vger.kernel.org" , Arnd Bergmann , linux-clk , Wim Van Sebroeck , "linux-watchdog@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 1, 2021 at 9:34 AM Rasmus Villemoes wrote: > On 26/02/2021 20.53, Guenter Roeck wrote: > > > > Sorry, I am missing something. If the watchdog is controlled by the clock, > > it is a consumer of that clock. > > But that's just it, the watchdog chip is _not_ a consumer of the clock - > I don't think I've ever seen a gpio_wdt that is not internally clocked, > but even if they exist, that's not the case for this board. > > What else does "consumer" mean ? And why > > not just add optional clock support to the gpio_wdt driver ? > > Because, the consumer is a piece of electronics sitting _between_ the > watchdog chip's reset output and the SOCs reset pin, namely the ripple > counter that implements a 64 ms delay from the watchdog fires till the > actual reset. (The watchdog's reset is also routed directly to an > interrupt; so software gets a 64 ms warning that a hard reset is imminent). I think it's a question of how you look at what the gpio_wdt device is. While physical gpio chip is not a consumer of the clock, I agree with Guenter that the conceptual device is: The functionality of the watchdog in this case is provided by the combination of the external chip with the ripple counter. I think it is therefore appropriate to have the gpio_wdt and the driver refer to the clock as part of the watchdog. Arnd