linux/sound/soc/intel
Pierre-Louis Bossart f2556ce6b3 ASoC: Intel: sof_sdw: handle errors on card registration
[ Upstream commit fe154c4ff3 ]

If the card registration fails, typically because of deferred probes,
the device properties added for headset codecs are not removed, which
leads to kernel oopses in driver bind/unbind tests.

We already clean-up the device properties when the card is removed,
this code can be moved as a helper and called upon card registration
errors.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20220606203752.144159-4-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-07-21 21:24:37 +02:00
..
atom ASoC: Updates for v5.15 2021-08-30 14:57:03 +02:00
boards ASoC: Intel: sof_sdw: handle errors on card registration 2022-07-21 21:24:37 +02:00
catpt ASoC: Intel: catpt: Test dmaengine_submit() result before moving on 2022-01-27 11:04:14 +01:00
common ASoC: Intel: soc-acpi: correct device endpoints for max98373 2022-05-09 09:14:39 +02:00
keembay Merge remote-tracking branch 'asoc/for-5.13' into asoc-next 2021-04-23 19:01:02 +01:00
skylake ASoC: Intel: Skylake: Correct the handling of fmt_config flexible array 2022-07-21 21:24:19 +02:00
Kconfig ASoC: Intel: KMB: Enable DMA transfer mode 2021-01-08 18:23:41 +00:00
Makefile ASoC: Intel: Skylake: Compile when any configuration is selected 2021-03-10 13:07:21 +00:00