From: Syed Saba Kareem <Syed.SabaKareem@amd.com>
To: <broonie@kernel.org>, <alsa-devel@alsa-project.org>
Cc: <Vijendar.Mukunda@amd.com>, <Basavaraj.Hiregoudar@amd.com>,
<Sunil-kumar.Dommati@amd.com>,
Syed Saba Kareem <Syed.SabaKareem@amd.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
Yang Yingliang <yangyingliang@huawei.com>,
Venkata Prasad Potturu <venkataprasad.potturu@amd.com>,
V sujith kumar Reddy <Vsujithkumar.Reddy@amd.com>,
Claudiu Beznea <claudiu.beznea@microchip.com>,
Ajit Kumar Pandey <AjitKumar.Pandey@amd.com>,
open list <linux-kernel@vger.kernel.org>
Subject: [PATCH v2 04/10] ASoC: amd: acp: store platform device reference created in pci probe call
Date: Mon, 26 Jun 2023 19:25:08 +0530 [thread overview]
Message-ID: <20230626135515.1252063-5-Syed.SabaKareem@amd.com> (raw)
In-Reply-To: <20230626135515.1252063-1-Syed.SabaKareem@amd.com>
Store the platform device reference created in pci driver,
it will be used in restoring the interrupts during system level resume.
Signed-off-by: Syed Saba Kareem <Syed.SabaKareem@amd.com>
---
sound/soc/amd/acp/acp-pci.c | 2 +-
sound/soc/amd/acp/amd.h | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/sound/soc/amd/acp/acp-pci.c b/sound/soc/amd/acp/acp-pci.c
index a51cf7f32f7d..4fedad1b740e 100644
--- a/sound/soc/amd/acp/acp-pci.c
+++ b/sound/soc/amd/acp/acp-pci.c
@@ -140,7 +140,7 @@ static int acp_pci_probe(struct pci_dev *pci, const struct pci_device_id *pci_id
ret = PTR_ERR(pdev);
goto unregister_dmic_dev;
}
-
+ chip->chip_pdev = pdev;
return ret;
unregister_dmic_dev:
diff --git a/sound/soc/amd/acp/amd.h b/sound/soc/amd/acp/amd.h
index 0d8c0febbbfc..f53613216397 100644
--- a/sound/soc/amd/acp/amd.h
+++ b/sound/soc/amd/acp/amd.h
@@ -115,6 +115,7 @@ struct acp_chip_info {
char *name; /* Platform name */
unsigned int acp_rev; /* ACP Revision id */
void __iomem *base; /* ACP memory PCI base */
+ struct platform_device *chip_pdev;
};
struct acp_stream {
--
2.25.1
next prev parent reply other threads:[~2023-06-26 13:56 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20230626135515.1252063-1-Syed.SabaKareem@amd.com>
2023-06-26 13:55 ` [PATCH v2 01/10] ASoC: amd: acp: refactor the acp init and de-init sequence Syed Saba Kareem
2023-06-26 13:55 ` [PATCH v2 02/10] ASoC: amd: acp: add acp i2s master clock generation for rembrandt platform Syed Saba Kareem
2023-06-26 13:55 ` [PATCH v2 03/10] ASoC: amd: acp: remove the redundant acp enable/disable interrupts functions Syed Saba Kareem
2023-06-26 13:55 ` Syed Saba Kareem [this message]
2023-06-26 13:55 ` [PATCH v2 05/10] ASoC: amd: acp: add pm ops support for acp pci driver Syed Saba Kareem
2023-06-27 4:52 ` Claudiu.Beznea
2023-06-26 13:55 ` [PATCH v2 06/10] ASoC: amd: acp: store xfer_resolution of the stream Syed Saba Kareem
2023-06-26 13:55 ` [PATCH v2 07/10] ASoC: amd: acp: export config_acp_dma() and config_pte_for_stream() symbols Syed Saba Kareem
2023-06-26 13:55 ` [PATCH v2 08/10] ASoC: amd: acp: store the pdm stream channel mask Syed Saba Kareem
2023-06-26 13:55 ` [PATCH v2 09/10] ASoC: amd: acp: move pdm macros to common header file Syed Saba Kareem
2023-06-26 13:55 ` [PATCH v2 10/10] ASoC: amd: acp: add pm ops support for rembrandt platform Syed Saba Kareem
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=20230626135515.1252063-5-Syed.SabaKareem@amd.com \
--to=syed.sabakareem@amd.com \
--cc=AjitKumar.Pandey@amd.com \
--cc=Basavaraj.Hiregoudar@amd.com \
--cc=Sunil-kumar.Dommati@amd.com \
--cc=Vijendar.Mukunda@amd.com \
--cc=Vsujithkumar.Reddy@amd.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=claudiu.beznea@microchip.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@perex.cz \
--cc=tiwai@suse.com \
--cc=venkataprasad.potturu@amd.com \
--cc=yangyingliang@huawei.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
all inboxes | Powered by JetHome®