[PATCH] soc: qcom: aoss: Fix the prevent_aoss_sleep message
From: Birk Skyum via B4 Relay
Date: Tue Dec 01 2026 - 06:36:41 EST
From: Birk Skyum <birk.skyum@xxxxx>
The AOP keeps the AOSS out of sleep on {class: aoss_slp, res: sleep,
val: disable}. The prevent_aoss_sleep debugfs entry sends "res: sleep:
%s" without the val key, and maps Y, which asks to prevent sleep, to
"enable".
On a Samsung Galaxy Book4 Edge 14 (X1E-80-100), writing either Y or N
to the entry left the AOSD residency at 97 to 98 % of a suspend, while
the message above kept it at 0. Send that message, with "disable" for
Y and "enable" for N.
Fixes: d51d984c5525 ("soc: qcom: aoss: Add debugfs interface for sending messages")
Link: https://github.com/omacom/omarchy/discussions/15860#discussioncomment-19640176
Signed-off-by: Birk Skyum <birk.skyum@xxxxx>
---
Compiled drivers/soc/qcom/qcom_aoss.o cleanly with W=1 and tested on a
Samsung Galaxy Book4 Edge 14 (X1E-80-100).
---
drivers/soc/qcom/qcom_aoss.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/soc/qcom/qcom_aoss.c b/drivers/soc/qcom/qcom_aoss.c
index a6b673cd7..5ca8af4fc 100644
--- a/drivers/soc/qcom/qcom_aoss.c
+++ b/drivers/soc/qcom/qcom_aoss.c
@@ -498,7 +498,7 @@ struct qmp_debugfs_entry {
static const struct qmp_debugfs_entry qmp_debugfs_entries[QMP_DEBUGFS_FILES] = {
{ "ddr_frequency_mhz", "{class: ddr, res: fixed, val: %u}", false },
- { "prevent_aoss_sleep", "{class: aoss_slp, res: sleep: %s}", true, "enable", "disable" },
+ { "prevent_aoss_sleep", "{class: aoss_slp, res: sleep, val: %s}", true, "disable", "enable" },
{ "prevent_cx_collapse", "{class: cx_mol, res: cx, val: %s}", true, "mol", "off" },
{ "prevent_ddr_collapse", "{class: ddr_mol, res: ddr, val: %s}", true, "mol", "off" },
};
---
base-commit: ef922b721a5e99348fc1f5801fdeb427ee14ee9f
change-id: 20261201-qcom-aoss-prevent-sleep-7078e504ed88
Best regards,
--
Birk Skyum <birk.skyum@xxxxx>