From: Yixun Lan <dlan@kernel.org>
To: Ulf Hansson <ulfh@kernel.org>,
Troy Mitchell <troy.mitchell@linux.spacemit.com>
Cc: linux-pm@vger.kernel.org, linux-riscv@lists.infradead.org,
spacemit@lists.linux.dev, linux-kernel@vger.kernel.org,
Yixun Lan <dlan@kernel.org>
Subject: [PATCH] pmdomain: spacemit: Suppress driver bind interface
Date: Wed, 02 Dec 2026 09:24:57 +0000 [thread overview]
Message-ID: <20261202-04-k3-pm-unlink-v1-1-44e1be19fff9@kernel.org> (raw)
Disable the unbind/bind interface for SpacemiT pmdomain driver, so
the sysfs interface of
/sys/bus/auxiliary/drivers/spacemit_pm_domains/{bind,unbind}
will not be exposed to user space. It will avoid a kernel oops when
access pm_genpd_summary later if device detached.
Signed-off-by: Yixun Lan <dlan@kernel.org>
---
Per discussion in this thread[1], Suggested by maintainer to
disable the bind interface.
Link: https://patch.msgid.link/20261112-01-pm-device-link-v1-1-8932e0862378@kernel.org [1]
---
drivers/pmdomain/spacemit/spacemit-pm-domains.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/pmdomain/spacemit/spacemit-pm-domains.c b/drivers/pmdomain/spacemit/spacemit-pm-domains.c
index 9d77d3f4c182..8f3f9027b0df 100644
--- a/drivers/pmdomain/spacemit/spacemit-pm-domains.c
+++ b/drivers/pmdomain/spacemit/spacemit-pm-domains.c
@@ -415,6 +415,9 @@ static struct auxiliary_driver spacemit_pm_domain_driver = {
.probe = spacemit_pm_domain_probe,
.remove = spacemit_pm_domain_remove,
.id_table = spacemit_pm_domain_ids,
+ .driver = {
+ .suppress_bind_attrs = true,
+ }
};
module_auxiliary_driver(spacemit_pm_domain_driver);
---
base-commit: 6d18e4c50cb03b45cd36e7dd837a503088a102d4
change-id: 20261130-04-k3-pm-unlink-44399ed21004
Best regards,
--
Yixun Lan <dlan@kernel.org>
reply other threads:[~2026-12-02 9:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20261202-04-k3-pm-unlink-v1-1-44e1be19fff9@kernel.org \
--to=dlan@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=spacemit@lists.linux.dev \
--cc=troy.mitchell@linux.spacemit.com \
--cc=ulfh@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
all inboxes | Powered by JetHome®