diff options
author | Akshu Agrawal <akshu.agrawal@amd.com> | 2020-02-26 16:17:44 +0530 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-02-26 18:14:15 +0000 |
commit | 911abf8b050e76591479d35c928f7e72605067ac (patch) | |
tree | e44729a9a032d521a61bb6c9a19b4b8b9c956d02 /sound/soc/amd | |
parent | b2d48dde38d373487503fd36cda05f17c1183b6d (diff) | |
download | linux-911abf8b050e76591479d35c928f7e72605067ac.tar.gz linux-911abf8b050e76591479d35c928f7e72605067ac.tar.bz2 linux-911abf8b050e76591479d35c928f7e72605067ac.zip |
ASoC: amd: Allow I2S wake event after ACP is powerd On
ACP_PME_EN allows wake interrupt to be generated when I2S wake
feature is enabled. On turning ACP On, ACP_PME_EN gets cleared.
Setting the bit back ensures that wake event can be received
when ACP is On.
Signed-off-by: Akshu Agrawal <akshu.agrawal@amd.com>
Link: https://lore.kernel.org/r/20200226104746.208656-1-akshu.agrawal@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/amd')
-rw-r--r-- | sound/soc/amd/raven/pci-acp3x.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sound/soc/amd/raven/pci-acp3x.c b/sound/soc/amd/raven/pci-acp3x.c index da60e2ec5535..f25ce50f1a90 100644 --- a/sound/soc/amd/raven/pci-acp3x.c +++ b/sound/soc/amd/raven/pci-acp3x.c @@ -38,8 +38,13 @@ static int acp3x_power_on(void __iomem *acp3x_base) timeout = 0; while (++timeout < 500) { val = rv_readl(acp3x_base + mmACP_PGFSM_STATUS); - if (!val) + if (!val) { + /* Set PME_EN as after ACP power On, + * PME_EN gets cleared + */ + rv_writel(0x1, acp3x_base + mmACP_PME_EN); return 0; + } udelay(1); } return -ETIMEDOUT; |