mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
mfd: wm5102: Mark register write sequencer control 3 readable
During init the core checks if the wm5102 has finished starting by reading register 0x19 and looking at the value. This read always fails since this is not a readable register, mark it as being one. While we're at it provide a constant for the register name (as supplied by Charles Keepax). Signed-off-by: Mark Brown <[email protected]> Signed-off-by: Charles Keepax <[email protected]> Signed-off-by: Lee Jones <[email protected]>
This commit is contained in:
parent
5e9bbf17b3
commit
48018943eb
3 changed files with 4 additions and 1 deletions
|
|
@ -784,7 +784,8 @@ int arizona_dev_init(struct arizona *arizona)
|
|||
/* Ensure device startup is complete */
|
||||
switch (arizona->type) {
|
||||
case WM5102:
|
||||
ret = regmap_read(arizona->regmap, 0x19, &val);
|
||||
ret = regmap_read(arizona->regmap,
|
||||
ARIZONA_WRITE_SEQUENCER_CTRL_3, &val);
|
||||
if (ret != 0)
|
||||
dev_err(dev,
|
||||
"Failed to check write sequencer state: %d\n",
|
||||
|
|
|
|||
|
|
@ -1017,6 +1017,7 @@ static bool wm5102_readable_register(struct device *dev, unsigned int reg)
|
|||
case ARIZONA_WRITE_SEQUENCER_CTRL_0:
|
||||
case ARIZONA_WRITE_SEQUENCER_CTRL_1:
|
||||
case ARIZONA_WRITE_SEQUENCER_CTRL_2:
|
||||
case ARIZONA_WRITE_SEQUENCER_CTRL_3:
|
||||
case ARIZONA_WRITE_SEQUENCER_PROM:
|
||||
case ARIZONA_TONE_GENERATOR_1:
|
||||
case ARIZONA_TONE_GENERATOR_2:
|
||||
|
|
|
|||
Loading…
Reference in a new issue