mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mario Limonciello <superm1@kernel.org>
To: "Mukunda,Vijendar" <vijendar.mukunda@amd.com>, broonie@kernel.org
Cc: alsa-devel@alsa-project.org, lgirdwood@gmail.com, perex@perex.cz,
	tiwai@suse.com, Sunil-kumar.Dommati@amd.com,
	venkataprasad.potturu@amd.com, linux-sound@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 5/5] ASoC: amd: acp7x: add system and runtime PM ops
Date: Thu, 21 May 2026 06:43:09 -0500	[thread overview]
Message-ID: <2feeb837-ba7a-497b-be94-67756019b5cf@kernel.org> (raw)
In-Reply-To: <fe98d961-c02c-4794-868e-7911991f7321@amd.com>



On 5/21/26 06:41, Mukunda,Vijendar wrote:
> On 08/05/26 01:03, Mario Limonciello wrote:
>>
>>
>> On 5/7/26 13:11, Vijendar Mukunda wrote:
>>> Add ACP7.x PM callbacks and hook up system sleep and runtime PM ops for
>>> the PCI driver.
>>>
>>> Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
>>> ---
>>>    sound/soc/amd/acp7x/acp7x-common.c | 43 ++++++++++++++++++++++++++++++
>>>    sound/soc/amd/acp7x/acp7x.h        |  3 +++
>>>    sound/soc/amd/acp7x/pci-acp7x.c    | 31 +++++++++++++++++++++
>>>    3 files changed, 77 insertions(+)
>>>
>>> diff --git a/sound/soc/amd/acp7x/acp7x-common.c
>>> b/sound/soc/amd/acp7x/acp7x-common.c
>>> index 68f9b47766c4..df94864a1693 100644
>>> --- a/sound/soc/amd/acp7x/acp7x-common.c
>>> +++ b/sound/soc/amd/acp7x/acp7x-common.c
>>> @@ -75,8 +75,51 @@ static int acp7x_deinit(void __iomem *acp_base, struct
>>> device *dev)
>>>        return 0;
>>>    }
>>>    +static int __maybe_unused snd_acp7x_suspend(struct device *dev)
>>> +{
>>> +    struct acp7x_dev_data *adata;
>>> +    int ret;
>>> +
>>> +    adata = dev_get_drvdata(dev);
>>> +    ret = acp_hw_deinit(adata, dev);
>>> +    if (ret)
>>> +        dev_err(dev, "ACP de-init failed\n");
>>> +    return ret;
>>> +}
>>> +
>>> +static int __maybe_unused snd_acp7x_runtime_resume(struct device *dev)
>>> +{
>>> +    struct acp7x_dev_data *adata;
>>> +    int ret;
>>> +
>>> +    adata = dev_get_drvdata(dev);
>>> +    ret = acp_hw_init(adata, dev);
>>> +    if (ret) {
>>> +        dev_err(dev, "ACP init failed\n");
>>> +        return ret;
>>> +    }
>>> +    return 0;
>>> +}
>>> +
>>> +static int __maybe_unused snd_acp7x_resume(struct device *dev)
>>> +{
>>> +    struct acp7x_dev_data *adata;
>>> +    int ret;
>>> +
>>> +    adata = dev_get_drvdata(dev);
>>> +    ret = acp_hw_init(adata, dev);
>>> +    if (ret)
>>> +        dev_err(dev, "ACP init failed\n");
>>> +
>>> +    return ret;
>>> +}
>>
>> Both of snd_acp7x_runtime_resume and snd_acp7x_resume look identical. Will
>> there be later code (when machine driver and IO enablement come) that makes
>> them different?
> 
> Yes, when IO enablement code is updated, both the functions are going to be
> different.
> We need to keep it separately.
> 

Thanks, no concerns with the series then.

Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>

  reply	other threads:[~2026-05-21 11:43 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-07 18:11 [PATCH 0/5] ASoC: AMD: ACP7.x initial PCI driver bring-up Vijendar Mukunda
2026-05-07 18:11 ` [PATCH 1/5] include: sound: add register header file for acp7.x series Vijendar Mukunda
2026-05-07 19:34   ` Mario Limonciello
2026-05-07 18:11 ` [PATCH 2/5] ASoC: amd: acp7x: add ACP PCI driver probe/remove sequence Vijendar Mukunda
2026-05-07 19:36   ` Mario Limonciello
2026-05-07 18:11 ` [PATCH 3/5] ASoC: amd: acp7x: add helper functions and hw ops Vijendar Mukunda
2026-05-07 19:34   ` Mario Limonciello
2026-05-07 18:11 ` [PATCH 4/5] ASoC: amd: enable acp7.x drivers build Vijendar Mukunda
2026-05-07 19:36   ` Mario Limonciello
2026-05-07 18:11 ` [PATCH 5/5] ASoC: amd: acp7x: add system and runtime PM ops Vijendar Mukunda
2026-05-07 19:33   ` Mario Limonciello
2026-05-21 11:34     ` Mark Brown
2026-05-21 11:37       ` Mukunda,Vijendar
2026-05-21 11:41     ` Mukunda,Vijendar
2026-05-21 11:43       ` Mario Limonciello [this message]
2026-05-21 23:15 ` [PATCH 0/5] ASoC: AMD: ACP7.x initial PCI driver bring-up Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2feeb837-ba7a-497b-be94-67756019b5cf@kernel.org \
    --to=superm1@kernel.org \
    --cc=Sunil-kumar.Dommati@amd.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=tiwai@suse.com \
    --cc=venkataprasad.potturu@amd.com \
    --cc=vijendar.mukunda@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome