On 2022-02-09 11:21 AM, Cezary Rojewski wrote:
snd_soc_bind_card() invokes snd_card_register() which in consequence
leads to snd_device_register_all() and that to automatic ->dev_register
call. That call involves PM operations, and at that moment, codec is not
ready for it.
By that I mean: bus driver (here, avs-driver) has some saying on the PM
matter too e.g.: sets their (codecs) status to suspended via
pm_runtime_set_suspended() so the bus runtime suspend is not blocked by
codecs that could possibly never complete their probing.
Regards,
Czarek