* [PATCH] ALSA: hda: cs35l56: Call pm_runtime_dont_use_autosuspend()
@ 2023-09-08 10:12 Richard Fitzgerald
2023-09-11 6:29 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: Richard Fitzgerald @ 2023-09-08 10:12 UTC (permalink / raw)
To: tiwai; +Cc: alsa-devel, patches, linux-kernel, Richard Fitzgerald
Driver remove() must call pm_runtime_dont_use_autosuspend().
Drivers that call pm_runtime_use_autosuspend() must disable
it in driver remove(). Unfortunately until recently this was
only mentioned in 1 line in a 900+ line document so most
people hadn't noticed this. It has only recently been added
to the kerneldoc of pm_runtime_use_autosuspend().
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Fixes: 2a930a6da8ec ("ALSA: hda/cs35l56: Add driver for Cirrus Logic CS35L56 amplifier")
---
sound/pci/hda/cs35l56_hda.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sound/pci/hda/cs35l56_hda.c b/sound/pci/hda/cs35l56_hda.c
index 76b9c685560b..9e4976bdb5e0 100644
--- a/sound/pci/hda/cs35l56_hda.c
+++ b/sound/pci/hda/cs35l56_hda.c
@@ -1003,6 +1003,7 @@ void cs35l56_hda_remove(struct device *dev)
{
struct cs35l56_hda *cs35l56 = dev_get_drvdata(dev);
+ pm_runtime_dont_use_autosuspend(cs35l56->base.dev);
pm_runtime_get_sync(cs35l56->base.dev);
pm_runtime_disable(cs35l56->base.dev);
--
2.30.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] ALSA: hda: cs35l56: Call pm_runtime_dont_use_autosuspend()
2023-09-08 10:12 [PATCH] ALSA: hda: cs35l56: Call pm_runtime_dont_use_autosuspend() Richard Fitzgerald
@ 2023-09-11 6:29 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2023-09-11 6:29 UTC (permalink / raw)
To: Richard Fitzgerald; +Cc: tiwai, alsa-devel, patches, linux-kernel
On Fri, 08 Sep 2023 12:12:23 +0200,
Richard Fitzgerald wrote:
>
> Driver remove() must call pm_runtime_dont_use_autosuspend().
>
> Drivers that call pm_runtime_use_autosuspend() must disable
> it in driver remove(). Unfortunately until recently this was
> only mentioned in 1 line in a 900+ line document so most
> people hadn't noticed this. It has only recently been added
> to the kerneldoc of pm_runtime_use_autosuspend().
>
> Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
> Fixes: 2a930a6da8ec ("ALSA: hda/cs35l56: Add driver for Cirrus Logic CS35L56 amplifier")
Applied now.
The Fixes tag points to a non-existing ID, so I corrected in my side
to 73cfbfa9caea.
thanks,
Takashi
> ---
> sound/pci/hda/cs35l56_hda.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/sound/pci/hda/cs35l56_hda.c b/sound/pci/hda/cs35l56_hda.c
> index 76b9c685560b..9e4976bdb5e0 100644
> --- a/sound/pci/hda/cs35l56_hda.c
> +++ b/sound/pci/hda/cs35l56_hda.c
> @@ -1003,6 +1003,7 @@ void cs35l56_hda_remove(struct device *dev)
> {
> struct cs35l56_hda *cs35l56 = dev_get_drvdata(dev);
>
> + pm_runtime_dont_use_autosuspend(cs35l56->base.dev);
> pm_runtime_get_sync(cs35l56->base.dev);
> pm_runtime_disable(cs35l56->base.dev);
>
> --
> 2.30.2
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-09-11 6:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-08 10:12 [PATCH] ALSA: hda: cs35l56: Call pm_runtime_dont_use_autosuspend() Richard Fitzgerald
2023-09-11 6:29 ` Takashi Iwai
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®