Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp6871827ybn; Mon, 30 Sep 2019 05:15:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqyRZnNYnRryGKPA4dZAbx5Rhtx24uM5ER0wtk1K/+HIiZtaUHNWq5/9HW7ni5rQG07BWjx8 X-Received: by 2002:a50:ab49:: with SMTP id t9mr19027300edc.301.1569845732157; Mon, 30 Sep 2019 05:15:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569845732; cv=none; d=google.com; s=arc-20160816; b=TDEgta1NafgKoh0XwNubblrbeHsDv0ohcUAPNmlvl6oEAQ9J/Gk0ywSBR7itTEu9eH Zt/8Urp0PKzhpV9KlbU5/1mZHv+z/Nbv6UjcIDnXvk32QIq4iuX9+XgTSIzOYlz6Cnjd pw1KzZKERcumNfUqcMeDO/zKVmurwyp32JRI6Wg652fzQybgke35e9tq5bENoEaox4nM ATW2MnWtZvBjb+1lu5TTB2zZFnC0N6EE2lxyU6w/8No8TUWuUz9wUZqCv9Lk4Vvry8n6 wjjVWgaJcA3ydVGq8tNXcQIqfPizdL8haoCrJn6zwZPZxpvARrOCvYUF8azj2Njk7xl8 VoCA== 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:dkim-signature; bh=Cs6i4ZwAF8VZe/f+tj45Qc3PscNqg2hbvI0kGS3P7PM=; b=NCmBPag7Y2ykfY3z0EsJ4zWtmHF6DSY5RWq3qWUorvozFoyfs22ZhQgOBt3AGwzwPG +2OndHfhmE6XSIQ86O2JNdtUEDhnK3EpAhlZWlORSmQo8Y/PxcdGjec9wsNVvDVfEDe5 T9CgwtC59ofIXW1yWFSAVKQcAbwveT/DPAfogsIgpoWWYfcqm+wREMSfOSETvY/Ir2HF VXVm6pzmQqnFR/RzEZQwIPqLj3db/5sXY/9PJmQV2ccK3yq7842DFiV8vZYKlcRYioOg eJCtIEYndZNe/V6ErgU63ddEhn3LkbExEUdt2ao+tgCETuntAj3BPR4HRHRdORDF7KAu 9SJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=MfSjHOwj; 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 ca7si6735968ejb.319.2019.09.30.05.15.06; Mon, 30 Sep 2019 05:15:32 -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=fail header.i=@lunn.ch header.s=20171124 header.b=MfSjHOwj; 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 S1729988AbfI3MOu (ORCPT + 99 others); Mon, 30 Sep 2019 08:14:50 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:54000 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726008AbfI3MOu (ORCPT ); Mon, 30 Sep 2019 08:14:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Cs6i4ZwAF8VZe/f+tj45Qc3PscNqg2hbvI0kGS3P7PM=; b=MfSjHOwjRy+ci3bxERgM3msN6W qcF7r3DjwzQNbpjcqDc8lq8ATtsZSAwFrIqynBF36pdORLYDeqeDvn9qvFLb0T7D4ODUAxl8nS8F/ bKJpijEbsGzisLv9154HzRgqsuHldOnlF54DBQm/INrj0QkSF5tEotzkdWpVqhLFs9YU=; Received: from andrew by vps0.lunn.ch with local (Exim 4.92.2) (envelope-from ) id 1iEuZc-0003YY-Mo; Mon, 30 Sep 2019 14:14:40 +0200 Date: Mon, 30 Sep 2019 14:14:40 +0200 From: Andrew Lunn To: Oleksandr Suvorov Cc: "linux-kernel@vger.kernel.org" , Marcel Ziswiler , Jamie Lentin , "linux-pm@vger.kernel.org" , Igor Opaniuk , "devicetree@vger.kernel.org" , Sebastian Reichel , Rob Herring , Mark Rutland Subject: Re: [PATCH 0/2] This patch introduces a feature to force gpio-poweroff module Message-ID: <20190930121440.GC13301@lunn.ch> References: <20190930103531.13764-1-oleksandr.suvorov@toradex.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190930103531.13764-1-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 10:35:36AM +0000, Oleksandr Suvorov wrote: > to register its own pm_power_off handler even if someone has registered > this handler earlier. > Useful to change a way to power off the system using DT files. Hi Oleksandr I'm not sure this is a good idea. What happens when there are two drivers using forced mode? You then get which ever is register last. Non deterministic behaviour. What is the other driver which is causing you problems? How is it getting probed? DT? Thanks Andrew