From: Andrew Lunn <andrew@lunn.ch>
To: "A. Sverdlin" <alexander.sverdlin@siemens.com>
Cc: linux-pm@vger.kernel.org, Sebastian Reichel <sre@kernel.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH RFC] power: reset: restart-poweroff: convert to module
Date: Wed, 21 Feb 2024 22:56:06 +0100 [thread overview]
Message-ID: <6964c19f-6ffb-4d9a-bc02-ffaf52aa23b5@lunn.ch> (raw)
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 <alexander.sverdlin@siemens.com>
>
> 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
next prev parent reply other threads:[~2024-02-21 21:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-21 17:46 [PATCH RFC] power: reset: restart-poweroff: convert to module A. Sverdlin
2024-02-21 21:01 ` Sebastian Reichel
2024-02-21 21:56 ` Andrew Lunn [this message]
2024-02-22 7:16 ` Sverdlin, Alexander
2024-02-22 14:44 ` Andrew Lunn
2024-02-21 22:37 ` Andrew Lunn
2024-02-22 7:55 ` Sverdlin, Alexander
2024-02-22 14:55 ` Andrew Lunn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6964c19f-6ffb-4d9a-bc02-ffaf52aa23b5@lunn.ch \
--to=andrew@lunn.ch \
--cc=alexander.sverdlin@siemens.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=sre@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox