mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] pmdomain: spacemit: Suppress driver bind interface
@ 2026-12-02  9:24 Yixun Lan
  0 siblings, 0 replies; only message in thread
From: Yixun Lan @ 2026-12-02  9:24 UTC (permalink / raw)
  To: Ulf Hansson, Troy Mitchell
  Cc: linux-pm, linux-riscv, spacemit, linux-kernel, Yixun Lan

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>


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-12-02  9:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-02  9:24 [PATCH] pmdomain: spacemit: Suppress driver bind interface Yixun Lan

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®