Skip to contentSkip to conversation

ASoC: rt5677: set PLL_CTRL2 non-volatile

PATCH In review Bard Liao 2 participants 2 messages Dec 18, 2015 – Dec 23, 2015

Subsystems (3)
lore
Share & tools
lore

Bard Liao

author
#0 lore raw

PATCH 1/1 ASoC: rt5677: set PLL_CTRL2 non-volatile

There is a status bit on RT5677_PLL1_CTRL2 and RT5677_PLL2_CTRL2. That's why those registers are set volatile. However, the status bit is currently not used by codec driver. So, it should be no problem if we set them non-volatile.
The purpose of setting them non-volatile is to restore the setting after a syspend/resume cycle.

---
Mark,

Please revert the "ASoC: rt5677: Reconfigure PLL1 after resume" patch before applying this patch.

Thanks.

---
 sound/soc/codecs/rt5677.c | 2 --
 1 file changed, 2 deletions(-)
sound/soc/codecs/rt5677.c +0 -2
index f73fd12..13fef00 100644
@@ -297,8 +297,6 @@ static bool rt5677_volatile_register(struct device *dev, unsigned int reg)
 	case RT5677_HAP_GENE_CTRL2:
 	case RT5677_PWR_DSP_ST:
 	case RT5677_PRIV_DATA:
-	case RT5677_PLL1_CTRL2:
-	case RT5677_PLL2_CTRL2:
 	case RT5677_ASRC_22:
 	case RT5677_ASRC_23:
 	case RT5677_VAD_CTRL5:
Signature · 1 line
1.8.1.1.439.g50a6b54
maintainer
#1 lore raw

Applied "ASoC: rt5677: set PLL_CTRL2 non-volatile" to the asoc tree

The patch

ASoC: rt5677: set PLL_CTRL2 non-volatile

has been applied to the asoc tree at

git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark

Quoted 1 line

From d0d1eedd5ad345f16234311b375bf94d6c90e14b Mon Sep 17 00:00:00 2001

From: Bard Liao <[email protected]>
Date: Fri, 18 Dec 2015 10:16:23 +0800
Subject: [PATCH] ASoC: rt5677: set PLL_CTRL2 non-volatile

There is a status bit on RT5677_PLL1_CTRL2 and RT5677_PLL2_CTRL2. That's why those registers are set volatile. However, the status bit is currently not used by codec driver. So, it should be no problem if we set them non-volatile.
The purpose of setting them non-volatile is to restore the setting after a syspend/resume cycle.

---
 sound/soc/codecs/rt5677.c | 2 --
 1 file changed, 2 deletions(-)
sound/soc/codecs/rt5677.c +0 -2
index f73fd125e49c..13fef00e7b25 100644
@@ -297,8 +297,6 @@ static bool rt5677_volatile_register(struct device *dev, unsigned int reg)
 	case RT5677_HAP_GENE_CTRL2:
 	case RT5677_PWR_DSP_ST:
 	case RT5677_PRIV_DATA:
-	case RT5677_PLL1_CTRL2:
-	case RT5677_PLL2_CTRL2:
 	case RT5677_ASRC_22:
 	case RT5677_ASRC_23:
 	case RT5677_VAD_CTRL5:
Signature · 1 line
2.6.2