summaryrefslogtreecommitdiffstats
path: root/sound/soc/amd
diff options
context:
space:
mode:
authorSyed Saba Kareem <Syed.SabaKareem@amd.com>2023-06-26 19:25:08 +0530
committerMark Brown <broonie@kernel.org>2023-07-09 22:47:35 +0100
commit7a83903022dc3bd5214f6bdde8132c66015ab538 (patch)
tree5faf44306bbc9514cee6cd2fdc3ec7a7af8c1301 /sound/soc/amd
parentfc11d3266dc7ed386efe91c20d09780bbded1f03 (diff)
downloadlinux-stable-7a83903022dc3bd5214f6bdde8132c66015ab538.tar.gz
linux-stable-7a83903022dc3bd5214f6bdde8132c66015ab538.tar.bz2
linux-stable-7a83903022dc3bd5214f6bdde8132c66015ab538.zip
ASoC: amd: acp: store platform device reference created in pci probe call
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> Link: https://lore.kernel.org/r/20230626135515.1252063-5-Syed.SabaKareem@amd.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/amd')
-rw-r--r--sound/soc/amd/acp/acp-pci.c2
-rw-r--r--sound/soc/amd/acp/amd.h1
2 files changed, 2 insertions, 1 deletions
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 c9cbda9c64ca..50a00974bec9 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 {