Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1372946ybf; Sun, 1 Mar 2020 07:48:55 -0800 (PST) X-Google-Smtp-Source: ADFU+vtJdffRf2IT/5g+utuOOSbu2LakN0W+ECm3sGPICJ/ob1Vsobj5u3aWBo7vHxZs+Wc77m4a X-Received: by 2002:a9d:77d7:: with SMTP id w23mr606476otl.45.1583077734964; Sun, 01 Mar 2020 07:48:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583077734; cv=none; d=google.com; s=arc-20160816; b=RlKhtHR7SJJE8bJFteXaFrO3y9fiyBSHxCMSfxyrdZlITE5T/2ASw97fBDKHskN4R2 W5FpkJYOiHHjm2c9r1gRWCX2GHvsXd2nkeGJ4RnmdOM0iVczZLpPz3PTOxpQh3Fv/jLx SHrRtahzL/RiBWd/yEPcN2ZBNG+bsEZmDMUXM+LY4RF2Rdskhonlf6Z9gnRbxG3ecfN7 IpeMFGoXDEX5j//IuqQ8hRpj3muKSYZJRqKQqLaDVZ0W3Zec82jlo0i76tlLQZdkmYjr kiGiTlxrTcoxqxufP5B7RL2eog5LDGhRhsxOYeNeNQDLJivtH3nKLwlZ8SOTZYPdzxP+ QjEA== 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:autocrypt:from:references:cc:to:subject:dkim-signature; bh=rnDdU1t+i3pbiA7G2lqfJJVJbNAuzNGmpXr7ztBKXlQ=; b=QVjOJAal45H4PVqOzvB+CXDzBue11hEQK6Ob4Pm54YnodqxFiXtx9KEDwU+ikgXEbx zpB3KI7KrjNLT0lflIYxdgCb2lhX7v9oevPIqSTJ8xFYOiFDg+b5RDWMJbduc4CoPUOX MlGy8BPnW5HBtHOLLU2YVMsiy/glcQmIBHotCtRfZmB33CrLyFZft+GDO7QxMjRFa0bc V/WKnzpWycI3kay4qILRvhTFwQX/coRGPQVmAUnnXJF3ajW5+lwB7bNhxdERRe/B9zIg ujqJqEas9mkJaTJm1nABXcdlpp+apBTNoZq/RO/aRfk+8RQl4O7XEo9rayv7pR7khk+B hIdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=lqkVpCAy; 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 a22si4887980oii.98.2020.03.01.07.48.42; Sun, 01 Mar 2020 07:48:54 -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=fail header.i=@gmail.com header.s=20161025 header.b=lqkVpCAy; 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 S1726561AbgCAPqt (ORCPT + 99 others); Sun, 1 Mar 2020 10:46:49 -0500 Received: from mail-pj1-f66.google.com ([209.85.216.66]:34820 "EHLO mail-pj1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725945AbgCAPqs (ORCPT ); Sun, 1 Mar 2020 10:46:48 -0500 Received: by mail-pj1-f66.google.com with SMTP id s8so1534839pjq.0; Sun, 01 Mar 2020 07:46:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=rnDdU1t+i3pbiA7G2lqfJJVJbNAuzNGmpXr7ztBKXlQ=; b=lqkVpCAyg/jzYuiab/XMJeOi14yP/WQW36so+Rpz4P+A2QT9dG+Gsovj2cLgPUuB5i by7TXuO4DKZX1Awk+/cggTU47fBFKfiOzwleppi257Rs5lys3p8lFNo8fMkg8CcMijec c6HfCzQ/XvOJGrWbUve4M2H+1fmt7oejJBdvxMFa6chVj2uQuLKVX2FvSx0ZqDIiqqrz n3/2XA5vo6xHaIa9X3tVjXM6J4EAhsE74HdpGutaLvX8HxyezcfQSNICWl0rQlkgoU7D kpMH6qLyK38OwN87jwurNAR2PQERoL8mfZtR9cvVE+Obw9raidvCeEJ7JlzTbJ3Wf8+Y mu/A== 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:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=rnDdU1t+i3pbiA7G2lqfJJVJbNAuzNGmpXr7ztBKXlQ=; b=KmholEemImq/byhidaC5xD4299CIGbm4weJQwiKzmkVMZBkdxO2jqVIFlfrooFcjZf IIFk+nS2HsQ/aMugUOv92kXGQ7FZnKEU7wFBjLn+u+FZVJkWyjrmV1DS5WJO1yX7lhED IN3WB+UmjAPK7EzAjaKXMH3JEGMPqXm/Z6hviHSzZgUuKogM7KEqqRkghMwG3223APBU /0trV6xCN7QfzwmqmPu9sWYXbEQfLBuNguht+OCmJYZGrUd9ka12bvSu7um8NjVibLzx JCuSrk6dH2QrGNuafc/5Dli2ZFpFEwGLbI0QntXmSPbJKE6PB//9t39jGWJxbdNvyBzk 4aLQ== X-Gm-Message-State: ANhLgQ2yv/S2yppmHViDvY/rosJZFqQLxk0iY+IDrOhbuiP/Aj0DXXPg XBCVMySBpvFf8ms3UpjUBkI= X-Received: by 2002:a17:902:b904:: with SMTP id bf4mr4278476plb.151.1583077607229; Sun, 01 Mar 2020 07:46:47 -0800 (PST) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id c184sm17790346pfa.39.2020.03.01.07.46.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 01 Mar 2020 07:46:46 -0800 (PST) Subject: Re: [PATCH v1 1/4] dt-binding: watchdog: add restart priority documentation To: Tomer Maimon Cc: Wim Van Sebroeck , Rob Herring , Mark Rutland , Joel Stanley , Avi Fishman , Tali Perry , Nancy Yuen , Benjamin Fair , linux-watchdog@vger.kernel.org, devicetree , Linux Kernel Mailing List , OpenBMC Maillist References: <20200301094040.123189-1-tmaimon77@gmail.com> <20200301094040.123189-2-tmaimon77@gmail.com> <6ecf9a6b-8fca-1e7a-10d0-ee518e6ecf64@roeck-us.net> From: Guenter Roeck Autocrypt: addr=linux@roeck-us.net; keydata= xsFNBE6H1WcBEACu6jIcw5kZ5dGeJ7E7B2uweQR/4FGxH10/H1O1+ApmcQ9i87XdZQiB9cpN RYHA7RCEK2dh6dDccykQk3bC90xXMPg+O3R+C/SkwcnUak1UZaeK/SwQbq/t0tkMzYDRxfJ7 nyFiKxUehbNF3r9qlJgPqONwX5vJy4/GvDHdddSCxV41P/ejsZ8PykxyJs98UWhF54tGRWFl 7i1xvaDB9lN5WTLRKSO7wICuLiSz5WZHXMkyF4d+/O5ll7yz/o/JxK5vO/sduYDIlFTvBZDh gzaEtNf5tQjsjG4io8E0Yq0ViobLkS2RTNZT8ICq/Jmvl0SpbHRvYwa2DhNsK0YjHFQBB0FX IdhdUEzNefcNcYvqigJpdICoP2e4yJSyflHFO4dr0OrdnGLe1Zi/8Xo/2+M1dSSEt196rXaC kwu2KgIgmkRBb3cp2vIBBIIowU8W3qC1+w+RdMUrZxKGWJ3juwcgveJlzMpMZNyM1jobSXZ0 VHGMNJ3MwXlrEFPXaYJgibcg6brM6wGfX/LBvc/haWw4yO24lT5eitm4UBdIy9pKkKmHHh7s jfZJkB5fWKVdoCv/omy6UyH6ykLOPFugl+hVL2Prf8xrXuZe1CMS7ID9Lc8FaL1ROIN/W8Vk BIsJMaWOhks//7d92Uf3EArDlDShwR2+D+AMon8NULuL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eKEsFKFOkynOs3pVbcbq1pxbhk3TRWCGRU5JolI4ohy/7JV1TVbjiDI HP/aVnm6NC8of26P40Pg8EdAhajZnHHjA7FrJXsy3cyIGqvg9os4rNkUWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= Message-ID: Date: Sun, 1 Mar 2020 07:46:44 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/1/20 7:36 AM, Tomer Maimon wrote: > > > On Sun, 1 Mar 2020 at 12:06, Guenter Roeck > wrote: > > On 3/1/20 1:40 AM, Tomer Maimon wrote: > > Add device tree restart priority documentation. > > > > I think this warrants an explanation _why_ this is needed. > What is the use case ? Not just theory, please. > > > In the NPCM750 there is two initiated restarts: > > * Software reset > * WD reset > > the Software restart found at NPCM reset driver > https://github.com/torvalds/linux/blob/master/drivers/reset/reset-npcm.c > > In NPCM WD driver the restart is configure as well, I will like to add the priority so the user will have maximum flexibility if he using both restarts > This is not the intended use case for restart priority. It is not intended to be user configurable. The idea is that the more thorough restart gets higher priority. This is implied by the restart method, not by user preferences. Also, the idea behind supporting multiple means to reset the system is to be able to support multiple means to restart, some of which may not always be available. In that situation, the priority means, and is supposed to mean, "pick the best restart method available". Again, that is determined by system design, and not supposed to be configurable by the user. On top of that, a watchdog driver based reset is almost always a reset of last resort, to be chosen only if nothing else is available in a given system. The existence of the reset driver confirms that this is not different for this driver/chip. Guenter