Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp1022rdb; Wed, 21 Feb 2024 14:46:54 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVS9IJAOGpWpV6+l1LQ5q5CpoPiiywR4ElqLC6akiA5iD+U/B5rWUhDYR852NNmE5FhjbTOoq5dQJPqUGMymM+NVs6NdorI2T9edDu2MA== X-Google-Smtp-Source: AGHT+IEY7kbUkGQegC19GYxe7d4Y+Zr2+Zok98nfJkbc/HuVkrTx5ZRe8fXyUBji/3ufZ4AmW55f X-Received: by 2002:a17:906:27d1:b0:a3e:5ae8:5777 with SMTP id k17-20020a17090627d100b00a3e5ae85777mr7792596ejc.44.1708555614736; Wed, 21 Feb 2024 14:46:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708555614; cv=pass; d=google.com; s=arc-20160816; b=io/cFqHVZ8ZOO+uvjuXJZlpepGfRnNYxEExkUcI1Zt2A1WvEbMViT8j0qRoyzZXLW9 RXCYWNXTrGk4ccJf6ZTiMxle3EmpD4wrb7JcXipuV7b8Hau+NRnBIVAjl+XZd9FHGmTZ f7n9WT2KxSvgQOXrb/Wz/9kQKpCbAg548+fNlNsZ7eoTC4PL/GSubfsU9bklXb9dd9wS BKeKOAEqD0/dAIGyjrCqC3rjBNGC65fN+u6JWrJw9WyqWwaJ9xaUO9mhyvwOzPmeLloP sTQsLGz1ZG72/+kFFBQmtm7Kz8VH7OaMdVeQ7OpReGI0yr+Bqj8iRnfmk38fHdh4cxfk Ic0A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=+DUC9Ol77HyNFU3nLRrnMQQ7bRbYxwVbPzMRC3bl3iU=; fh=m4i5QYRWXSkYfK0eCveFjWFrlVjUGcdafx24IzV6YSg=; b=dIZM6dsPMT0Xe4KkHRPhq/cchIkscbf2pxkQ7SZq7GbP2u89nsTOhTMRQM/mftlqGW LFEe9UuA7KDGSc0qzvhh4F6ksAmcCrLhWCWCWO3006iJLJ8IvZnAb9mo2VEnIDdfzgHY NgOQUJNJSxYVUkqK0QHes52pSl4QVZ70oYKbVSR5T86KchzX6kfttRP7MZIcCJrzh8qP CRHfCfcLwv9LOe3qRLMKJO1RVzVg23DoYCJqNc4d+67Ykx4Ct63vvgL0Dy4tST9ydfE2 3fm7LaBU5fqqsnjdFReeA5aAWtJKrqbgU4hb9xa7VBBZ+k3UtIt2AfMFABH+tPO4wuKM npUQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="ttd0uWL/"; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-75607-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75607-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id b19-20020a170906491300b00a3f27154566si1213469ejq.126.2024.02.21.14.46.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 14:46:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75607-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="ttd0uWL/"; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-75607-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75607-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 393BC1F24998 for ; Wed, 21 Feb 2024 22:37:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F25903C491; Wed, 21 Feb 2024 22:36:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="ttd0uWL/" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0FB34EC5; Wed, 21 Feb 2024 22:36:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708555012; cv=none; b=inSZv6N1I4SMR5UtXmvrUISbpQKKV2skjqnn4z/QLI0+sWfNR21CITRAnd25U5ges+e7AkkLPdMdtezi+is4H6Snm/HgMd/0pM+e3ObB77ydLFbW1nO4xGDxPAS+uz8zwCdnux1xNzhmeG2RiizhTJ+yZzchxsSHTJNTvIYxO6c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708555012; c=relaxed/simple; bh=1DlCMsm9Uoa6uGuW9HYEKY5OHTI8oAijmibPIeN5aEE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tHocYNxhT2rtH5doNBZQGkINO8qvhsqE7GzC565gyRpkh5mwlDB4ybXvIHTTpf5G8ZTAvFcCOd45EHLC3NKWvrePRnBSvPHH3ZtBU8WCEuf1ICD9sXqGog8l5gzmAcXVXIo72O+Ng0I8/75yf/yHUAzzEQR5S6Z+OuTtS+4zqmk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=ttd0uWL/; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=+DUC9Ol77HyNFU3nLRrnMQQ7bRbYxwVbPzMRC3bl3iU=; b=ttd0uWL/7GDlNBMREPucoEQUUI 7xtjioQo7PLDh6I7TXwyRrlID5zprEJOlSO1E5qphV/bAZV4MEll/4egqGVWwgOpcjNVqnIcQ+IQN RCLrYZ6ttiIbMg1cBJ0TlydnVPYiMLvdrTTFSQrUm3YL+Td8pUeDNvkPzNA4TnxdbJ5M=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rcvD2-008OrM-Fa; Wed, 21 Feb 2024 23:37:00 +0100 Date: Wed, 21 Feb 2024 23:37:00 +0100 From: Andrew Lunn To: "A. Sverdlin" Cc: linux-pm@vger.kernel.org, Sebastian Reichel , linux-kernel@vger.kernel.org Subject: Re: [PATCH RFC] power: reset: restart-poweroff: convert to module Message-ID: References: <20240221174610.3560775-1-alexander.sverdlin@siemens.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240221174610.3560775-1-alexander.sverdlin@siemens.com> On Wed, Feb 21, 2024 at 06:46:07PM +0100, A. Sverdlin wrote: > From: Alexander Sverdlin > > The necessity of having a fake platform device for a generic, platform > independent functionality is not obvious. > Some platforms requre device tree modification for this, some would require > ACPI tables modification, while functionality may be useful even to > end-users without required expertise. Convert the platform driver to > a simple module. > > Signed-off-by: Alexander Sverdlin > --- > This RFC is merely to understand if this approach would be accepted. > Converting to "tristate" could follow or preceed this patch. So that is you use case here? Why do you want to be able to just load this driver, without using DT to indicate it is needed by the hardware? Andrew