Repository navigation
ASoC: codec: max98373-sdw: Avoid regmap read of volatile reg. during … - #2507
naveen-manohar wants to merge 1 commit into
Conversation
…spend If codec is suspended, a error of Device or resource busy occurs when executing amixer. Amixer accesses AMP_PATH_GAIN which is a volatile register and the regmap is set to cache_only when codec is suspended, so regmap can't get its data from regmap cache and return -EBUSY. Patch removes volatile attribute of such registers. Signed-off-by: Naveen Manohar <naveen.m@intel.com>
|
Now I noticed, already there was a discussion here - b82ead2#r444520713 |
d6db71b to
5f31bc4
Compare
plbossart
left a comment
There was a problem hiding this comment.
Commit message doesn't seem right.
Can you also add a BugLink: .... tag so that this is tied to an actual bug.
Thanks!
| switch (reg) { | ||
| case MAX98373_R2054_MEAS_ADC_PVDD_CH_READBACK: | ||
| case MAX98373_R2055_MEAS_ADC_THERM_CH_READBACK: | ||
| case MAX98373_R20B6_BDE_CUR_STATE_READBACK: |
There was a problem hiding this comment.
the commit message states "Patch removes volatile attribute of such registers."
That doesn't seem right, it no longer exposes those registers?
There was a problem hiding this comment.
Correct.. shall modify it.
There was a problem hiding this comment.
We should not remove those registers if they are volatile.
There was a problem hiding this comment.
Notice that Amp temperature value can be read for calibration in factory test and boot time.., so these registers should be exposed. We need to find some way to avoid errors during suspend..
Any suggestions or inputs please ?
|
please check #2226. I made such change in my first version and some register change was discarded after discussing. please check: #2226 (comment) |
|
@bardliao provided a patch upstream already. |
…suspend
If codec is suspended, a error of Device or resource busy occurs when
executing amixer. Amixer accesses AMP_PATH_GAIN which is a volatile register
and the regmap is set to cache_only when codec is suspended, so regmap can't
get its data from regmap cache and return -EBUSY.
Patch removes volatile attribute of such registers.
Signed-off-by: Naveen Manohar naveen.m@intel.com