Received: by 2002:a05:7412:d384:b0:fc:a2b0:25d7 with SMTP id bq4csp7448rdb; Wed, 21 Feb 2024 13:56:07 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWMWCkII+CuKkBJJI4AT3DqFPmVJpOKNdsirSKLXHNQ26shQrDZPWonbt6U6W2uxCuU9LUvcuNgEQgTjikEk/BCDW18ALhj7Hf+YfL2ZA== X-Google-Smtp-Source: AGHT+IH5mo3RGDKgs6KiJmCMizdIduXUL4rh3librGqkK5/7/bnE3KvU4+koJXCbV76taH70EGR4 X-Received: by 2002:a17:902:f68a:b0:1dc:15f5:fde3 with SMTP id l10-20020a170902f68a00b001dc15f5fde3mr1001736plg.4.1708552566727; Wed, 21 Feb 2024 13:56:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708552566; cv=pass; d=google.com; s=arc-20160816; b=nZSw9E9KLEaY8rbJbh81Hb+uGF2p90W21ngRSfnZ3wt41EntgK0qCskGDwkdbmbaYi nZxThHhHLosZw6Et776Fb+tfywZ7BUNgc+SX5+dlmYag5O3WgSEnT27rLJz0BkdTe90s PdQ/Y/8BZov17wduPPvzuYzXaUSIkKj5og2ZuehiV3t6GV2rOerlUo+bwN4rt2/9ILPz EIUkBC0Get1poDqff+7sagEu6Ll7A+CGG+6CJN166n8qa2rkmECI7WSsr4OncgaUXW6v T/3PU1tkGXUN8vxf2t/SQX84xWRneFeTVxiBt3+F1dnXphBCbfLH5IW20ZXxuGQUzOLt jkFA== 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=AXSy1sSCudHSwTEsn2KeZXdnhJZE8cqzG9gRyWLU2So=; fh=m4i5QYRWXSkYfK0eCveFjWFrlVjUGcdafx24IzV6YSg=; b=matq4HQksj410GAi1Uc0Tyt4svAR1eQMG3SSHK2kI4G6qzmz6ILX9dDmfi8BfsXudO 1umRMKx1tPwmvc7oEeU6GvZ1n3DHyztm2mIc+mPX6/s/80UfPFdMM21It6vKY3f3DCSL U8BRtzMfN8zmoMSCyeviGOffliOLtuARiXJWhaMrEbL6/nGMiVESLiJH7PMc1epo89aF /CBrLI1nktgICZs86jym0hd3Dtj/0qKrB8stDJxCrrsOlVkRjANSI4370tk5Ir2sj50b u+u1DyqQ8NggTjuWGH1jg6neUfry3/t4rdlp8qbe2NHjRtoZvcqQQhqpucm2WbzNAFeR m/1w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=sZM9OvrJ; 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-75576-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75576-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 u14-20020a17090341ce00b001dbcfa705e1si7092534ple.162.2024.02.21.13.56.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 13:56:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75576-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=sZM9OvrJ; 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-75576-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75576-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 6C7AF283F2F for ; Wed, 21 Feb 2024 21:56:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B347412836D; Wed, 21 Feb 2024 21:56:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="sZM9OvrJ" 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 A1A0786AF4; Wed, 21 Feb 2024 21:55:56 +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=1708552559; cv=none; b=uSssqPqjinRql5qYzP/YzZC8SA/9+7v12pAotCVK2BzZqIY3IObmEpOfF4we9sWew4QHNXd5pRgeb+0opiD/DQzWPMkPMaefq1RuYPiyF0UiFFTMpc4//clWzHLnEvyarInymgVwzuu08h6AlF9Htq7VcTtPmF8Y/gVlJy/rX+Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708552559; c=relaxed/simple; bh=nTuc8LKTvKZXgaBo7OkNjdEx8ZgVIB8lvaDsj+8oJD0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UcfIOKyOOg2NpfUnecrYbQa/QNYeVT2C4scjyBMQcx8tXhhG69e2f2PmNcRLmZN9FrCaqBld1HBp3PQHab9vQ5Hi6vtvvG6RrqdSlXR5RMsNWqBqbw3WXbbRSuBZwD1nUJMt6wSX6bG9tQCuN4sgpctYGzKLggRV7U863KCsVlY= 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=sZM9OvrJ; 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=AXSy1sSCudHSwTEsn2KeZXdnhJZE8cqzG9gRyWLU2So=; b=sZM9OvrJSdjCAxoqaP9CdiOxJZ qqTlAAsic6d43gCucAaDjaJzjFWSAc+4m0GfOGfB5crWz32LcV41tDABNbZwingayB1sFTKKTW2cx npA3FEbLuZjUIfRc0nohlNmlU0KwLFmphVlKXMQoJ++t/Plq1nEWNSC4asMOclBUmRsk=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rcuZS-008Ohp-82; Wed, 21 Feb 2024 22:56:06 +0100 Date: Wed, 21 Feb 2024 22:56:06 +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: <6964c19f-6ffb-4d9a-bc02-ffaf52aa23b5@lunn.ch> 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. > @@ -47,15 +45,8 @@ static const struct of_device_id of_restart_poweroff_match[] = { > }; > MODULE_DEVICE_TABLE(of, of_restart_poweroff_match); > > -static struct platform_driver restart_poweroff_driver = { > - .probe = restart_poweroff_probe, > - .remove = restart_poweroff_remove, > - .driver = { > - .name = "poweroff-restart", > - .of_match_table = of_restart_poweroff_match, > - }, > -}; of_restart_poweroff_match now seems to be disconnected from the driver. kirkwood-linkstation.dtsi: compatible = "restart-poweroff"; kirkwood-lsxl.dtsi: compatible = "restart-poweroff"; orion5x-linkstation.dtsi: compatible = "restart-poweroff"; orion5x-lswsgl.dts: compatible = "restart-poweroff"; How do these devices get this driver loaded? This appears to be another reason to NACK it. Andrew