17 Jun
2022
17 Jun
'22
11:44 a.m.
On Thu, Jun 16, 2022 at 04:08:25PM -0500, Pierre-Louis Bossart wrote:
Make sure that the bus and codecs are pm_runtime active when the card is registered/created. This avoid timeouts when accessing registers.
+static int max98373_sdw_probe(struct snd_soc_component *component) +{
- int ret;
- ret = pm_runtime_resume(component->dev);
- if (ret < 0 && ret != -EACCES)
return ret;
I'm not clear what the issue is here. Is something that's accessing the registers forgetting to do a pm_runtime_get(), or doing that rather than using pm_runtime_get_sync()? This doesn't feel safe or robust.