Skip to contentSkip to conversation

ASoC: max98090: make REVISION_ID readable

PATCH Applied Stephen Warren 2 participants 2 messages Feb 13, 2014 – Feb 16, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: max98090: make REVISION_ID readable

From: Stephen Warren <[email protected]>

The REVISION_ID register is not currently marked readable. snd_soc_read() refuses to read the register, and hence probe() fails.

Fixes d4807ad2c4c0 ("regmap: Check readable regs in _regmap_read")
[exposed the bug, by checking for readability]
Fixes 685e42154dcf ("ASoC: Replace max98090 Device Driver")
[left out this register from the readable list]
---
 sound/soc/codecs/max98090.c | 1 +
 1 file changed, 1 insertion(+)
sound/soc/codecs/max98090.c +1 -0
index 51f9b3d16b41..141091c62db5 100644
@@ -336,6 +336,7 @@ static bool max98090_readable_register(struct device *dev, unsigned int reg)
 	case M98090_REG_RECORD_TDM_SLOT:
 	case M98090_REG_SAMPLE_RATE:
 	case M98090_REG_DMIC34_BIQUAD_BASE ... M98090_REG_DMIC34_BIQUAD_BASE + 0x0E:
+	case M98090_REG_REVISION_ID:
 		return true;
 	default:
 		return false;
Signature · 1 line
1.8.1.5
maintainer Applied
#1 lore raw
Quoted 4 lines · Stephen Warren

From: Stephen Warren <[email protected]>

The REVISION_ID register is not currently marked readable. snd_soc_read() refuses to read the register, and hence probe() fails.

Applied, thanks.