diff mbox series

ASoC: max98363: Remove cache defaults for volatile registers

Message ID 20230609-asoc-mx98363-volatile-v1-1-7acad55f5dd6@kernel.org (mailing list archive)
State Accepted
Commit 997905d523fb85ba1a45159cbb9ae3910275bada
Headers show
Series ASoC: max98363: Remove cache defaults for volatile registers | expand

Commit Message

Mark Brown June 9, 2023, 11:58 p.m. UTC
The max98363 driver provides cache defaults for a number of volatile
registers. This is not meaningful, the cache values will never be used so
at best they will just consume memory and at worst they will be used in
preference to real values from the device, remove them.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/max98363.c | 6 ------
 1 file changed, 6 deletions(-)


---
base-commit: 44c026a73be8038f03dbdeef028b642880cf1511
change-id: 20230609-asoc-mx98363-volatile-8d88f2d7cfd8

Best regards,

Comments

Mark Brown June 19, 2023, 10:29 p.m. UTC | #1
On Sat, 10 Jun 2023 00:58:44 +0100, Mark Brown wrote:
> The max98363 driver provides cache defaults for a number of volatile
> registers. This is not meaningful, the cache values will never be used so
> at best they will just consume memory and at worst they will be used in
> preference to real values from the device, remove them.
> 
> 

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/1] ASoC: max98363: Remove cache defaults for volatile registers
      commit: 997905d523fb85ba1a45159cbb9ae3910275bada

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
diff mbox series

Patch

diff --git a/sound/soc/codecs/max98363.c b/sound/soc/codecs/max98363.c
index dcce06bff756..747941d9fd00 100644
--- a/sound/soc/codecs/max98363.c
+++ b/sound/soc/codecs/max98363.c
@@ -15,11 +15,6 @@ 
 #include "max98363.h"
 
 static struct reg_default max98363_reg[] = {
-	{MAX98363_R2001_INTR_RAW, 0x0},
-	{MAX98363_R2003_INTR_STATE, 0x0},
-	{MAX98363_R2005_INTR_FALG, 0x0},
-	{MAX98363_R2007_INTR_EN, 0x0},
-	{MAX98363_R2009_INTR_CLR, 0x0},
 	{MAX98363_R2021_ERR_MON_CTRL, 0x0},
 	{MAX98363_R2022_SPK_MON_THRESH, 0x0},
 	{MAX98363_R2023_SPK_MON_DURATION, 0x0},
@@ -28,7 +23,6 @@  static struct reg_default max98363_reg[] = {
 	{MAX98363_R2040_AMP_VOL, 0x0},
 	{MAX98363_R2041_AMP_GAIN, 0x5},
 	{MAX98363_R2042_DSP_CFG, 0x0},
-	{MAX98363_R21FF_REV_ID, 0x0},
 };
 
 static bool max98363_readable_register(struct device *dev, unsigned int reg)