Received: by 10.213.65.68 with SMTP id h4csp953038imn; Wed, 4 Apr 2018 09:59:13 -0700 (PDT) X-Google-Smtp-Source: AIpwx49M6R1qvjtw9ZfqI1qad7I8dHBwA0kZgiRwlRFMAypHGJjbl7ywmIuZU0wiZjUuR4kOFZj2 X-Received: by 10.99.98.134 with SMTP id w128mr12494256pgb.217.1522861153241; Wed, 04 Apr 2018 09:59:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522861153; cv=none; d=google.com; s=arc-20160816; b=BJAqy1IvC4lFF6bt85iN0c4kWSK/flsZuKCyY3/MesINDat+LOqmJjvkFoyZYkUH9z ZA3N6XOQD3KWp6mF0K61UskqxE6kcsUo0dM7ZqHHQdNUo6g4wOx7HE95N7OAm+VAu5xB wM6D2ow9/TfgAk+BdiL9p26dKYnXsqjxrxge5UyLruUwzG6EYQoRV1PSmaCTXrL1A9U1 Jmedl4m5xfniJ/A6JjaU7n445Lz4Y6hS9VqOAaQjZ7iTfs3ojEaRYUDmd50htwCLwr7B YogVEoiBifjhsrbt/V8vQVonvAqnXrZhKtz5ZnYm3fhmw2y8lizzCXrwiK/bsqgVGzDh r1Yg== 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=S4dRVq5oZxsIY/Ot4YCVrE/aeYn3VRhRnWv4qGKnN7I=; b=iHc+iDBZX5oU2Dg1+OXni2y5Ef2ION1CKs6oiAV/oaPruSlYdHwNvoKNGz+bxXCh0h wDyLStCqxRNJ6ELM1SdiE2BvPHA1+Jm8KeIh2hgmr4Ah/r+3B0sjDROQhTEzk6JCqh4m 8cSoQDmbac9FGqbfmkAJVF1WKYT0NrDuNsI/MgjuEejz7VO+FW8tTTj4nImoWTyguxvr VJb4AujjhBUJ/Fq4eYB06+ccl4l0l3zsB1j6PFPtkmlHegdKCt9Gmodl+mhxeH4k8CX0 HbELzKOFYSB6Dn+K4cPn9SNSXy7wHTCmY128w6prlXhA6waGkhggJ2k2k2p5pnVKLvRs LLSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gateworks-com.20150623.gappssmtp.com header.s=20150623 header.b=Hirh0zQ2; 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 k15si3932425pgp.278.2018.04.04.09.58.58; Wed, 04 Apr 2018 09:59:13 -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=pass header.i=@gateworks-com.20150623.gappssmtp.com header.s=20150623 header.b=Hirh0zQ2; 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 S1752502AbeDDQ5r (ORCPT + 99 others); Wed, 4 Apr 2018 12:57:47 -0400 Received: from mail-wr0-f179.google.com ([209.85.128.179]:35500 "EHLO mail-wr0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752258AbeDDQ5o (ORCPT ); Wed, 4 Apr 2018 12:57:44 -0400 Received: by mail-wr0-f179.google.com with SMTP id 80so23867817wrb.2 for ; Wed, 04 Apr 2018 09:57:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gateworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=S4dRVq5oZxsIY/Ot4YCVrE/aeYn3VRhRnWv4qGKnN7I=; b=Hirh0zQ2WklB7C0TcGaRWiMii9/uTymOMED7vwXJQgUDuC5ZcFgTmdIU4opoObiDcM UQF6Ycb4s1LnqldKh0r3rP4JM0Ckli2UH85XkEPsqISGQy2TlyQsUq4Hier5ZA7/FVrh MdLKfG42d9ITn9O2DZ8Y9pljx+YqnowmFgSovBbFx+iCzj8V0FiXQGv9/PiBv+fPZfgw Yk6StlrdaqHeHAJbmBHcFzA5p3MHxd/vWCu2GCkgteepa2l5DuZ0rn8J8DonyRiLE4on Vtt7DVPkLYi7BsEVtwURBGxO+9JCCNtqUJjDd5eBsNiVQ6nPNR4unsQLQJNPWHi/apG1 1CCw== 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=S4dRVq5oZxsIY/Ot4YCVrE/aeYn3VRhRnWv4qGKnN7I=; b=tk9u3KPXX+8tsDVkjJ6smpwfIcABerc/xOjpn753AdpzNson7g9cvAxhsKcSSvdwKA oQldi3jZqKHa6GGrmPNTh4mywfFBhl34myzuvXNKvGuu82FaLjzcwv8XqfdQjEBksqis 56lcePbQx/MaJOVXBLyhX59TtlsR8hoxMJGjjwWXxsXYn6FkRY5dJR+QVlhNszZelt+c UveUUX5FjPPtrhaPlEJ9ObEKeXLuGgcRMn4MdO5LpLA4Uw1tkiGoY9Iv5eCHoIlaapS+ LlxoGeZDGI2EDz1gGxMp6lI+46Ijv1rCFK1egxD6t4kjTHU9G2372F1pWOQObLbmQrYc NueA== X-Gm-Message-State: AElRT7H2y/a3nf+Ez4Tm0jPwZa8gD6NQXgFQE6lEN4FscYiHebF4qcEb ZGw2p70uBBjZhcW2AlCfrGVgeDcG84FTE29aFyZ/yw== X-Received: by 10.223.225.4 with SMTP id d4mr12852273wri.24.1522861063512; Wed, 04 Apr 2018 09:57:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.6.66 with HTTP; Wed, 4 Apr 2018 09:57:42 -0700 (PDT) In-Reply-To: <20180402163242.GC14165@lunn.ch> References: <1522250043-8065-5-git-send-email-tharvey@gateworks.com> <20180330010757.GA12896@roeck-us.net> <20180330181954.GA17580@roeck-us.net> <20180402163242.GC14165@lunn.ch> From: Tim Harvey Date: Wed, 4 Apr 2018 09:57:42 -0700 Message-ID: Subject: Re: [v3,4/4] watchdog: add Gateworks System Controller support To: Andrew Lunn Cc: Guenter Roeck , Mark Rutland , devicetree@vger.kernel.org, linux-watchdog@vger.kernel.org, Dmitry Torokhov , linux-kernel@vger.kernel.org, Rob Herring , Wim Van Sebroeck , Mark Brown , linux-input@vger.kernel.org, linux-hwmon@vger.kernel.org, Lee Jones , linux-arm-kernel@lists.infradead.org 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 Mon, Apr 2, 2018 at 9:32 AM, Andrew Lunn wrote: >> The 'use case' we have been using this in for a couple years is that >> users who want to use this watchdog will enable it externally (we have >> a command in the bootloader) and if enabled the kernel driver (that >> I'm proposing here which we've been using out-of-tree) will register >> the watchdog device and the userspace watchdog process can open the >> device and start tickling it. If the watchdog is never enabled (or >> disabled via the bootloader command) the kernel driver fails to probe >> and the SoC's watchdog can be used. > > Hi Tim > > Is there any reason not to give the user the choice to use both > watchdogs? Normally you write drivers to expose the hardware, and then > let the users choice if they want to use it. > Andrew, I don't know what value the SoC watchdog has if you have the GSC watchdog available that can power cycle the board but I would agree normally you would expose all of them. I suppose this may be a different case because I'm expecting the user to go and manually enable the watchdog instead of using the kernel to do it which means if its not enabled its not really available to be used. Tim