Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1014776ybp; Fri, 11 Oct 2019 07:48:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqyl+gltHlRYjxe/1wEMh6pyO7zJIif8UclYCWQFEI6K3E04CdIJCECVwua8EWOEVp04xB4V X-Received: by 2002:a17:906:6d87:: with SMTP id h7mr14384243ejt.4.1570805329635; Fri, 11 Oct 2019 07:48:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570805329; cv=none; d=google.com; s=arc-20160816; b=mhgY2ZUPiFnJK5+I63ne7Lm+sLRS2sU47xv66oob/Nbh3kpFE5wucHvp6CeTcwY77e y/zRR/QmBcXZ7dUdwHwNvZXKY9BQ9tMW6X/q3zvZx3WENJinUF+mQXirtlDsFRpK81yq LKExu+e/KvIbLtcrQPI/3yUpBIWx/GAF0MlvqHD7QahR8iw8OLllt+9QJseTe3m+pBik ZuPZxSYj3f2hhbLi3+mNfRRzNSAkKMNWNY2+P9ZcANV+YBgYf57ok+zj4lGmSJWJ0L9I uLO187l8FIBs4r51kcdcMD45IDKfQSqs40sslY7yA2MnotCJud5WoK6vbUbx0YbKiP9O nDsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=9kELu6s8Xez72s7yjDEZd7hwsCCJDY4gV2VlEWP54QM=; b=mE42gTpO8DwHspoVr783eXkb4HmdxeDBElkGcf4+Q/kQQNYgj5WdNmpHQ9Hvw9Ems/ j8PNow34cj7eP6CquHow7hRLwD6Oju5ZY/Csx79Xks9Lzbsq8nWtqrvNQIfKxYxjcTr8 S5ShwJU5ybdu6fEwX6Pbppqkb43JzFP8CKcGNLIPnah1RX7YezkKSve7Uu7N4zmkm9nD dfLKUpt4SH8h1EBUu8LhVEZjmcANMa0TPIOAvgKAkwWlS72yJKen8iU7yMpCSWIV2Lwf YjG2gUm/YSGEblBeZ+sj6Fn6Cvz8aUtMul/mgT0kXMSr4MI6z/28430CFdQqIITDz/f/ uL0A== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g37si6198655edg.59.2019.10.11.07.48.25; Fri, 11 Oct 2019 07:48:49 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726910AbfJKOsP (ORCPT + 99 others); Fri, 11 Oct 2019 10:48:15 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:37773 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726174AbfJKOsP (ORCPT ); Fri, 11 Oct 2019 10:48:15 -0400 Received: by mail-ot1-f66.google.com with SMTP id k32so8181656otc.4; Fri, 11 Oct 2019 07:48:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=9kELu6s8Xez72s7yjDEZd7hwsCCJDY4gV2VlEWP54QM=; b=A1Omp0uwnI0AOwdEtOWKSx2b/m3irUctzOB+KNmI+BpLLDwsjBsXAAoO10lEF3RoeI K1fWe0+CR7cCbhU+W9B38osApHFaPxAn2QM0PgbYmCB9Nz+Yxm4Scot09XlhC07B1esF yxa6HcvvjJQNNhAjpYok7vnhHs0f4MqlEe/HS9MlC/bb/gj8qos40j80z5Wrd2zg2brz ZlNbynBuZWvCHQ2ngWqTp3XLeLwSPLFin3MyLbuN8uaBKJ5iqbW1N9c2z9gFb+Dwd9Gh 1toC+3VGRw3PDpCV1QfPKDWyV0UZfLvdfFAO8rSR1A1oP5OSJZqu/hG9OuvnZ1HlAHvm Xgig== X-Gm-Message-State: APjAAAVtup4jNyNKXEPgpTB8/EwfD3+xmianbBDKblgs0I/zAJ6S3dAs YhOWzZ53pd12YJG6xmnwQw== X-Received: by 2002:a9d:6084:: with SMTP id m4mr11834429otj.18.1570805293419; Fri, 11 Oct 2019 07:48:13 -0700 (PDT) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id o184sm2694641oia.28.2019.10.11.07.48.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2019 07:48:12 -0700 (PDT) Date: Fri, 11 Oct 2019 09:48:12 -0500 From: Rob Herring To: Oleksandr Suvorov Cc: "linux-kernel@vger.kernel.org" , Marcel Ziswiler , Jamie Lentin , "linux-pm@vger.kernel.org" , Andrew Lunn , Igor Opaniuk , "devicetree@vger.kernel.org" , Sebastian Reichel , Mark Rutland Subject: Re: [PATCH v2 2/2] dt-bindings: power: reset: gpio-poweroff: Add 'force-mode' property Message-ID: <20191011144812.GA7239@bogus> References: <20190930141244.12311-1-oleksandr.suvorov@toradex.com> <20190930141244.12311-3-oleksandr.suvorov@toradex.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190930141244.12311-3-oleksandr.suvorov@toradex.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 30, 2019 at 02:12:53PM +0000, Oleksandr Suvorov wrote: > Add 'force-mode' property to allow the driver to load even if > someone has registered the pm_power_off hook earlier. > > Signed-off-by: Oleksandr Suvorov > > --- > > Changes in v2: None > > .../devicetree/bindings/power/reset/gpio-poweroff.txt | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/Documentation/devicetree/bindings/power/reset/gpio-poweroff.txt b/Documentation/devicetree/bindings/power/reset/gpio-poweroff.txt > index 3e56c1b34a4c..2056e299a472 100644 > --- a/Documentation/devicetree/bindings/power/reset/gpio-poweroff.txt > +++ b/Documentation/devicetree/bindings/power/reset/gpio-poweroff.txt > @@ -31,6 +31,9 @@ Optional properties: > - inactive-delay-ms: Delay (default 100) to wait after driving gpio inactive > - timeout-ms: Time to wait before asserting a WARN_ON(1). If nothing is > specified, 3000 ms is used. > +- force-mode: Force replacing pm_power_off kernel hook. > + If this optional property is not specified, the driver will fail to > + load if someone has registered the pm_power_off hook earlier. What if the init order changes? This is too tied to a specific OS implementation to go in DT. Rob