[PATCH] pmdomain: spacemit: Suppress driver bind interface

From: Yixun Lan

Date: Wed Dec 02 2026 - 04:25:14 EST


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@xxxxxxxxxx>
---
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@xxxxxxxxxx [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@xxxxxxxxxx>