FAILED: patch "[PATCH] ASoC: SDCA: re-enable IRQ on pm_runtime_force_suspend failure" failed to apply to 7.3-stable tree
Subsystems (4)
Sasha Levin
maintainerThe patch below does not apply to the 7.3-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-7.3.y
git checkout FETCH_HEAD
git cherry-pick -x d34a818a331f7e270fa9dc3db3d96f6a0d4fa7ab
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '[email protected]' --subject-prefix 'PATCH 7.3.y' 'HEAD^..'
Thanks,
Sasha
------------------ original commit in Linus's tree ------------------
From d34a818a331f7e270fa9dc3db3d96f6a0d4fa7ab Mon Sep 17 00:00:00 2001
From: Srinivas Kandagatla <[email protected]>
Date: Tue, 20 Oct 2026 08:38:53 +0100
Subject: [PATCH] ASoC: SDCA: re-enable IRQ on pm_runtime_force_suspend failure
The SoundWire IRQ was disabled before pm_runtime_force_suspend() but never re-enabled when the force suspend failed, leaving the codec unable to receive interrupts.
--- sound/soc/sdca/sdca_class.c | 1 + 1 file changed, 1 insertion(+)
sound/soc/sdca/sdca_class.c +1 -0
@@ -265,6 +265,7 @@ int sdca_class_system_suspend(struct sdca_class_drv *drv) ret =pm_runtime_force_suspend (drv->dev);if (ret) {dev_err (drv->dev,"failed to force suspend: %d\n" , ret); +enable_irq (drv->sdw->irq);return ret; }
Signature · 1 line
2.53.0
Sasha Levin
maintainerPATCH 1/2 ASoC: SDCA: export PM helpers keyed on sdca_class_drv
From: Srinivas Kandagatla <[email protected]>
[ Upstream commit 0985313a2a9d2e84d6a6b1041c88b5c57ee46dfa ]
The class PM callbacks pull sdca_class_drv out of drvdata, so the built-in class_sdw_driver owns the drvdata slot. That works for the generic case but blocks codec drivers that want to embed sdca_class_drv in their own private struct -- they need drvdata for their codec priv.
Split the four callbacks into exported helpers that take a struct sdca_class_drv * directly:
sdca_class_system_suspend()
sdca_class_system_resume()
sdca_class_runtime_suspend()
sdca_class_runtime_resume()
Codec drivers can now compose these into their own dev_pm_ops without going through drvdata.
For the built-in class_sdw_driver, add small dev_pm_ops wrappers that fetch drv from drvdata and wire them into sdca_class_pm_ops. The ops struct itself stays private to this file; codec drivers build their own dev_pm_ops from the four exported helpers above.
No functional change: the built-in class_sdw_driver keeps the same PM semantics; only the internal plumbing shifts to operate on sdca_class_drv instead of struct device *dev.
Stable-dep-of: d34a818a331f ("ASoC: SDCA: re-enable IRQ on pm_runtime_force_suspend failure")
---
.../soc/sdca => include/sound}/sdca_class.h | 14 ++++
sound/soc/sdca/sdca_class.c | 81 ++++++++++++++-----
sound/soc/sdca/sdca_class_function.c | 2 +-
3 files changed, 78 insertions(+), 19 deletions(-)
rename {sound/soc/sdca => include/sound}/sdca_class.h (58%)include/sound/sdca_class.h renamed from sound/soc/sdca/sdca_class.h +14 -0
@@ -32,4 +32,18 @@ struct sdca_class_drv { struct work_struct boot_work; }; +/* +* PM helpers. Codec drivers embed sdca_class_drv in their own priv, +* own dev_set_drvdata(), and compose these into their own dev_pm_ops: +* +* static int wcd_runtime_suspend(struct device *dev) { +* struct wcd_priv *priv = dev_get_drvdata(dev); +* return sdca_class_runtime_suspend(&priv->class); +* } +*/ +int sdca_class_runtime_suspend (struct sdca_class_drv *drv); +int sdca_class_runtime_resume (struct sdca_class_drv *drv); +int sdca_class_system_suspend (struct sdca_class_drv *drv); +int sdca_class_system_resume (struct sdca_class_drv *drv); +#endif /* __SDCA_CLASS_H__ */
sound/soc/sdca/sdca_class.c +63 -18
138 lines not on this page · raw message
sound/soc/sdca/sdca_class_function.c +1 -1
@@ -26,7 +26,7 @@#include <sound/soc-component.h> #include <sound/soc-dai.h> #include <sound/soc.h> -#include "sdca_class.h" +#include <sound/sdca_class.h> #include "sdca_function_device.h" struct class_function_drv {
Signature · 1 line
2.53.0
Sasha Levin
maintainerPATCH 2/2 ASoC: SDCA: re-enable IRQ on pm_runtime_force_suspend failure
From: Srinivas Kandagatla <[email protected]>
[ Upstream commit d34a818a331f7e270fa9dc3db3d96f6a0d4fa7ab ]
The SoundWire IRQ was disabled before pm_runtime_force_suspend() but never re-enabled when the force suspend failed, leaving the codec unable to receive interrupts.
--- sound/soc/sdca/sdca_class.c | 1 + 1 file changed, 1 insertion(+)
sound/soc/sdca/sdca_class.c +1 -0
@@ -216,6 +216,7 @@ int sdca_class_system_suspend(struct sdca_class_drv *drv) ret =pm_runtime_force_suspend (drv->dev);if (ret) {dev_err (drv->dev,"failed to force suspend: %d\n" , ret); +enable_irq (drv->sdw->irq);return ret; }
Signature · 1 line
2.53.0