Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp386696rdb; Thu, 22 Feb 2024 06:56:13 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXOTnlfpEPavt08tc/DF/UkLPWIc6iiWDlabcy+9EzIC3WBKty2a43Vt0dFmMkU20m2U5WzzqWbPI0Q0hTlo7uviGBMN41VCh3IXuBTjw== X-Google-Smtp-Source: AGHT+IHIOOp5Kd3VFJHV7WhUpvcxEOrBOx/N4E7Xua/G2ASM/nBCJKbaJR73teg6wZBfbY4kKwFH X-Received: by 2002:a05:6358:5e8b:b0:17b:56de:d23c with SMTP id z11-20020a0563585e8b00b0017b56ded23cmr7814298rwn.7.1708613773442; Thu, 22 Feb 2024 06:56:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708613773; cv=pass; d=google.com; s=arc-20160816; b=kfXlng6EqvIg8OaaKgkx0X/KUH1bZd823zTmqocYDn3MRfeHwu8vAKSnAmqYN9Rqtu gaFL4t2XADGmxCv4uq9NpORxiBnbQ4CRl+fib1ZOarl8tWqFr6SIRsgHlq/I1DPSxl7o oJKoZU78zwIgoBN+DEglG+6OqbgbdepyyKU3UZnnFall5UYI5oDLKJ3KKWH2MOqiCVgT iDTRu4vcUhm9HOfvDxBVt0f2rluIJm9KeQRXGuamMdFomAVfxiCcJ8m2UuM2tyHwsslM MN3Q5xrSPtrivkNmY1+bpp9qNXb+uqiJjOTcXE3u903t6MUXtHCnqxbtE4m/c8L68QPd pq1g== 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=iX6QxosVulzWPXQAoKr0Ar24MQe9V4D+gJ1RxluBhso=; fh=985+dJkeqbi8v80MRXaA7lmvi0nlvPDjr1nedYk8R50=; b=FoEJYJOqE+OlV/T1jCqa8X3t/ZH254//rJ9uFyHspRrkcM9QznpLjD6Hz4t+PWpW3k hilH5Gp2HUXIW6Vfw4GsGtzSvWecK3tBz1Uw3hUPxLVuqffl9W8cOby6JGVtGiCLXfyW vhcJKjWZvRBIzJ1hQTlp1BTwrbB5YYWq0InGCIrmEGDpWIoUHle8UwQ9+xVVHQA1RYHz npIv2hrxPadIR+SY5F6/upo7ZAeRpZCS1HWJ0g2VXmoWDDRd7zUoQHlEyUgn3/lUcOAY iRhJIICUuTTFOpP2sAwHD1gWdOEzng83nEklkpGbczzkovCxJzeJVPItso5Aeixt3onu wJZQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=VIpnetJY; 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-76729-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76729-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id b28-20020a63715c000000b005d8b4ae4892si10553897pgn.253.2024.02.22.06.56.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 06:56:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76729-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=VIpnetJY; 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-76729-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76729-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id B8A90284F5B for ; Thu, 22 Feb 2024 14:55:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D4E101487FB; Thu, 22 Feb 2024 14:55:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="VIpnetJY" 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 5BC2812D773; Thu, 22 Feb 2024 14:55:30 +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=1708613733; cv=none; b=Z/37PTT2L6shxbpCYtyMhALS+qHwqpEO2XBC6r5d++bNd3srpkpukMyMqjDF7rnUme2JChgZ9wnvBaoHS7l8A5Kd8yc6T6wcWmJW+q8nbEU0CmS5y5canj5GV2ZzFT10TYdxOpjCgzkDLTzMgSC7S+c4wfGLLb9xrTx6AGmXDd4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708613733; c=relaxed/simple; bh=UqPQe47cxPeMnp1/tmUMKaP3xffJYUbRfKDIjii29m4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=R93E1W/H7AgGC77QBf/qOpB4PdIHpWj01rDHLyE/GMQ7TchhMZCFi+O+uRXi8eJzbs8uWF2ntHwThS1dZ3ZdMSUZGO6Aiu248UxYLJDLcU13hijL998T7wV07pmHOq8bOEdEubdWhOthOwQbd3PGxZp1VQsFfKJjeE0F3qvl9/k= 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=VIpnetJY; 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=iX6QxosVulzWPXQAoKr0Ar24MQe9V4D+gJ1RxluBhso=; b=VIpnetJYFuIACkjr9kzicNuorF vBTRSCTnKoi/9YCWFb0rB8K/YDMaofTD2QwaUF0nMLs6eM2CXc5UQw4yxesthIFC7MyjLDJK4FXgz lquWjLfHocGgjQcwqrPYwKHaejuucDtNrjI1G9uqGULzt0epd7ip4p1rgwcTum9a/PRA=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rdAUA-008S24-RI; Thu, 22 Feb 2024 15:55:42 +0100 Date: Thu, 22 Feb 2024 15:55:42 +0100 From: Andrew Lunn To: "Sverdlin, Alexander" Cc: "linux-pm@vger.kernel.org" , "sre@kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH RFC] power: reset: restart-poweroff: convert to module Message-ID: <3344f3ab-8fba-4013-bc6a-8ec0246964b8@lunn.ch> References: <20240221174610.3560775-1-alexander.sverdlin@siemens.com> <80dc4e2e0c7e0fc6f224e704b8594c0f12d0afe9.camel@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: <80dc4e2e0c7e0fc6f224e704b8594c0f12d0afe9.camel@siemens.com> > Yes, the code is platform-independent now and can be re-used for deployments > which meant to be "always on". You need to be careful with the meaning of "always on". It is always on in that the hardware does not have any PMICs. It is impossible to turn the power off. This is a poweroff driver, and it powers the hardware off by dropping into the bootloader which then spins. > One could actually even use it with off-the-shelf x86 hardware. Is there off the shelf x86 which does not support turning the power off? I'm not familiar with x86 that much, but it seems to be a feature that has existed since the first IBM PC in 1980. Andrew