From: Matt Turner <mattst88@gmail.com>
To: Richard Henderson <richard.henderson@linaro.org>,
Magnus Lindholm <linmag7@gmail.com>,
Guenter Roeck <linux@roeck-us.net>
Cc: linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org,
Matt Turner <mattst88@gmail.com>
Subject: [PATCH v2 5/7] alpha: marvel: register a platform device for the environmental sensors
Date: Mon, 16 Nov 2026 21:59:12 -0500 [thread overview]
Message-ID: <20261116-marvel-env-v2-5-ef614eb2e7f1@gmail.com> (raw)
In-Reply-To: <20261116-marvel-env-v2-0-ef614eb2e7f1@gmail.com>
Register a "marvel_env" platform device on Marvel systems booted from
SRM, for the hwmon driver to bind to.
Signed-off-by: Matt Turner <mattst88@gmail.com>
---
arch/alpha/kernel/core_marvel.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/arch/alpha/kernel/core_marvel.c b/arch/alpha/kernel/core_marvel.c
index 7525f3ed6b62..169a1df6adb2 100644
--- a/arch/alpha/kernel/core_marvel.c
+++ b/arch/alpha/kernel/core_marvel.c
@@ -21,6 +21,7 @@
#include <linux/module.h>
#include <linux/memblock.h>
#include <linux/workqueue.h>
+#include <linux/platform_device.h>
#include <asm/ptrace.h>
#include <asm/smp.h>
@@ -1139,3 +1140,13 @@ long marvel_cfgtree_partial_update(unsigned long offset)
return status;
}
EXPORT_SYMBOL_GPL(marvel_cfgtree_partial_update);
+
+static int __init marvel_env_init(void)
+{
+ if (alpha_mv.init_arch != marvel_init_arch || !alpha_using_srm)
+ return 0;
+
+ return PTR_ERR_OR_ZERO(platform_device_register_simple("marvel_env",
+ -1, NULL, 0));
+}
+device_initcall(marvel_env_init);
--
2.56.1
next prev parent reply other threads:[~2026-11-17 2:59 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-17 2:59 [PATCH v2 0/7] alpha: marvel: environmental sensors Matt Turner
2026-11-17 2:59 ` [PATCH v2 1/7] alpha: marvel: fix the environmental subpacket layout Matt Turner
2026-11-17 3:06 ` sashiko-bot
2026-11-17 11:08 ` Magnus Lindholm
2026-11-17 2:59 ` [PATCH v2 2/7] alpha: marvel: report environmental events without VERBOSE_MCHECK Matt Turner
2026-11-17 3:03 ` sashiko-bot
2026-11-17 11:10 ` Magnus Lindholm
2026-11-17 2:59 ` [PATCH v2 3/7] alpha: marvel: refresh environmental readings through the console Matt Turner
2026-11-17 3:08 ` sashiko-bot
2026-11-17 11:17 ` Magnus Lindholm
2026-11-17 2:59 ` [PATCH v2 4/7] alpha: marvel: notify environmental events Matt Turner
2026-11-17 3:05 ` sashiko-bot
2026-11-17 11:10 ` Magnus Lindholm
2026-11-17 2:59 ` Matt Turner [this message]
2026-11-17 3:04 ` [PATCH v2 5/7] alpha: marvel: register a platform device for the environmental sensors sashiko-bot
2026-11-17 11:11 ` Magnus Lindholm
2026-11-17 2:59 ` [PATCH v2 6/7] hwmon: Add driver for Marvel AlphaServer " Matt Turner
2026-11-17 3:09 ` sashiko-bot
2026-11-17 11:27 ` Magnus Lindholm
2026-11-17 16:13 ` Guenter Roeck
2026-11-17 18:13 ` Matt Turner
2026-11-17 2:59 ` [PATCH v2 7/7] hwmon: (marvel-env) Notify userspace of environmental events Matt Turner
2026-11-17 3:09 ` sashiko-bot
2026-11-17 11:30 ` Magnus Lindholm
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=20261116-marvel-env-v2-5-ef614eb2e7f1@gmail.com \
--to=mattst88@gmail.com \
--cc=linmag7@gmail.com \
--cc=linux-alpha@vger.kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=richard.henderson@linaro.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.