]> www.infradead.org Git - users/dwmw2/linux.git/commit
ASoC: SOF: core: Add probe_early and remove_late callbacks
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Mon, 9 Oct 2023 11:54:26 +0000 (13:54 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 19 Oct 2023 12:53:50 +0000 (14:53 +0200)
commit17baaa1f950b19456618b792dbb5b3fbb12884a8
treef99af0a32fd59a62105dbf4d50df3bdb6442f197
parentf549a82aff57865c47b5abd17336b23cd9bb2d2c
ASoC: SOF: core: Add probe_early and remove_late callbacks

The existing DSP probe may be handled in a workqueue to allow for
extra time, typically for the i915 request_module and HDAudio codec
handling.

With the upcoming changes for i915/Xe driver relying on the
-EPROBE_DEFER mechanism, we need to have a first pass of the probe
which cannot be pushed to a workqueue. Introduce 2 new optional
callbacks.

probe_early is called before the workqueue runs. remove_late may be
called from the workqueue if load is unsuccesful, but will otherwise
be called on module unload.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Acked-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://lore.kernel.org/r/20231009115437.99976-3-maarten.lankhorst@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/soc/sof/core.c
sound/soc/sof/ops.h
sound/soc/sof/sof-priv.h