Uh oh!
There was an error while loading. Please reload this page.
ASoC: rt711_*: add snd_soc_component remove callback - #2640
Conversation
We do some IO operations in the snd_soc_component_set_jack callback function and snd_soc_component_set_jack() will be called when soc component is removed. However, we should not access SoundWire registers when the bus is suspended. So set regcache_cache_only(regmap, true) to avoid accessing in the soc component removal process. Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
RanderWang
commented
Dec 17, 2020
@bardliao when device is removing, reg map can be accessed ? Do other drivers implement this ? |
bardliao
commented
Dec 17, 2020
regmap can still be accessed during its removing process (device is not removed yet). I didn't see other drivers implement, but I think it is needed for rt711_* codecs. The point is that we can't access sdw registers when the bus driver is suspended. Currently we set |
We do some IO operations in the snd_soc_component_set_jack callback
function and snd_soc_component_set_jack() will be called when soc
component is removed. However, we should not access SoundWire registers
when the bus is suspended.
So set regcache_cache_only(regmap, true) to avoid accessing in the
soc component removal process.
Signed-off-by: Bard Liao yung-chuan.liao@linux.intel.com