Skip to content

Commit a0eae33

Browse files
charleskeepaxLee Jones
authored andcommitted
mfd: arizona: Mark DSP clocking register as volatile
The DSPs will often control there own clock speeds whilst running as such we should mark the registers controlling this as volatile. Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
1 parent 5de5b2d commit a0eae33

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎drivers/mfd/wm5102-tables.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1925,6 +1925,7 @@ static bool wm5102_volatile_register(struct device *dev, unsigned int reg)
19251925
case ARIZONA_AOD_IRQ1:
19261926
case ARIZONA_AOD_IRQ2:
19271927
case ARIZONA_AOD_IRQ_RAW_STATUS:
1928+
case ARIZONA_DSP1_CLOCKING_1:
19281929
case ARIZONA_DSP1_STATUS_1:
19291930
case ARIZONA_DSP1_STATUS_2:
19301931
case ARIZONA_DSP1_STATUS_3:

‎drivers/mfd/wm5110-tables.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2652,6 +2652,7 @@ static bool wm5110_volatile_register(struct device *dev, unsigned int reg)
26522652
case ARIZONA_DSP1_SCRATCH_1:
26532653
case ARIZONA_DSP1_SCRATCH_2:
26542654
case ARIZONA_DSP1_SCRATCH_3:
2655+
case ARIZONA_DSP1_CLOCKING_1:
26552656
case ARIZONA_DSP2_STATUS_1:
26562657
case ARIZONA_DSP2_STATUS_2:
26572658
case ARIZONA_DSP2_STATUS_3:
@@ -2680,6 +2681,7 @@ static bool wm5110_volatile_register(struct device *dev, unsigned int reg)
26802681
case ARIZONA_DSP2_SCRATCH_1:
26812682
case ARIZONA_DSP2_SCRATCH_2:
26822683
case ARIZONA_DSP2_SCRATCH_3:
2684+
case ARIZONA_DSP2_CLOCKING_1:
26832685
case ARIZONA_DSP3_STATUS_1:
26842686
case ARIZONA_DSP3_STATUS_2:
26852687
case ARIZONA_DSP3_STATUS_3:
@@ -2708,6 +2710,7 @@ static bool wm5110_volatile_register(struct device *dev, unsigned int reg)
27082710
case ARIZONA_DSP3_SCRATCH_1:
27092711
case ARIZONA_DSP3_SCRATCH_2:
27102712
case ARIZONA_DSP3_SCRATCH_3:
2713+
case ARIZONA_DSP3_CLOCKING_1:
27112714
case ARIZONA_DSP4_STATUS_1:
27122715
case ARIZONA_DSP4_STATUS_2:
27132716
case ARIZONA_DSP4_STATUS_3:
@@ -2736,6 +2739,7 @@ static bool wm5110_volatile_register(struct device *dev, unsigned int reg)
27362739
case ARIZONA_DSP4_SCRATCH_1:
27372740
case ARIZONA_DSP4_SCRATCH_2:
27382741
case ARIZONA_DSP4_SCRATCH_3:
2742+
case ARIZONA_DSP4_CLOCKING_1:
27392743
return true;
27402744
default:
27412745
return wm5110_is_adsp_memory(dev, reg);

0 commit comments

Comments
 (0)