linux/sound/soc/intel/boards
Pierre-Louis Bossart cf0418cd06
ASoC: Intel: sof_sdw_rt711: remove properties in card remove
The rt711 jack detection properties are set from the machine drivers
during the card probe, as done in other ASoC examples.

KASAN reports a use-after-free error when unbinding drivers due to a
confusing sequence between the ACPI core, the device core and the
SoundWire device cleanups.

Rather than fixing this sequence, follow the recommendation to have
the same caller add and remove properties, add an explicit
device_remove_properties() in the card .remove() callback.

In future patches the use of device_add/remove_properties will be
replaced by a direct handling of a swnode, but the sequence will
remain the same.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20200717211337.31956-3-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2020-07-20 16:08:20 +01:00
..
bdw-rt5650.c ASoC: Intel: broadwell: simplify card names for SOF uses 2020-06-17 20:58:32 +01:00
bdw-rt5677.c ASoC: Intel: bdw-rt5677: fix module load/unload issues 2020-06-23 12:25:38 +01:00
broadwell.c ASoC: Intel: broadwell: simplify card names for SOF uses 2020-06-17 20:58:32 +01:00
bxt_da7219_max98357a.c ASoC: Intel: bxt-da7219-max98357a: return -EINVAL on unrecognized speaker amplifier 2020-07-02 17:18:50 +01:00
bxt_rt298.c ASoC: Intel: bxt_rt298: add missing .owner field 2020-06-26 13:35:14 +01:00
byt-max98090.c ASoC: intel: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer 2020-03-27 14:44:38 +00:00
byt-rt5640.c ASoC: intel: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer 2020-03-27 14:44:38 +00:00
bytcht_cx2072x.c ASoC: Intel: byt*: simplify card names for SOF uses 2020-06-17 20:58:30 +01:00
bytcht_da7213.c ASoC: Intel: byt*: simplify card names for SOF uses 2020-06-17 20:58:30 +01:00
bytcht_es8316.c ASoC: Intel: boards: byt*.c: remove cast in dev_info quirk log 2020-06-26 13:35:16 +01:00
bytcht_nocodec.c ASoC: intel: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer 2020-03-27 14:44:38 +00:00
bytcr_rt5640.c ASoC: Intel: boards: byt*.c: remove cast in dev_info quirk log 2020-06-26 13:35:16 +01:00
bytcr_rt5651.c ASoC: Intel: boards: byt*.c: remove cast in dev_info quirk log 2020-06-26 13:35:16 +01:00
cht_bsw_max98090_ti.c ASoC: Intel: cht*: simplify card names for SOF uses 2020-06-17 20:58:31 +01:00
cht_bsw_nau8824.c ASoC: Intel: cht*: simplify card names for SOF uses 2020-06-17 20:58:31 +01:00
cht_bsw_rt5645.c ASoC: Intel: cht*: simplify card names for SOF uses 2020-06-17 20:58:31 +01:00
cht_bsw_rt5672.c ASoC: Intel: cht_bsw_rt5672: Improve dai-set-fmt comment in cht_codec_fixup() 2020-07-10 16:06:43 +01:00
cml_rt1011_rt5682.c ASoc: Intel: cml_rt1011_rt5682: explicitly access first codec 2020-06-26 16:10:56 +01:00
ehl_rt5660.c ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
glk_rt5682_max98357a.c ASoC: Intel: boards: replace capture_only by dpcm_capture 2020-06-09 15:29:00 +01:00
haswell.c ASoC: Intel: haswell: Remove ignore_suspend flag from SSP0 dai link 2020-03-30 18:03:07 +01:00
hda_dsp_common.c ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
hda_dsp_common.h ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
kbl_da7219_max98357a.c ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
kbl_da7219_max98927.c ASoC: Intel: boards: replace capture_only by dpcm_capture 2020-06-09 15:29:00 +01:00
kbl_rt5660.c ASoC: Intel: kbl-rt5660: use .exit() dailink callback to release gpiod 2020-06-23 12:25:39 +01:00
kbl_rt5663_max98927.c ASoC: Intel: boards: replace capture_only by dpcm_capture 2020-06-09 15:29:00 +01:00
kbl_rt5663_rt5514_max98927.c ASoC: Intel: boards: replace capture_only by dpcm_capture 2020-06-09 15:29:00 +01:00
Kconfig ASoC: Intel: sof-sdw: add MAX98373 I2C dependencies 2020-07-09 21:01:27 +01:00
Makefile ASoC: Intel: sof_sdw: Add MAX98373 support 2020-06-26 16:10:59 +01:00
skl_hda_dsp_common.c ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
skl_hda_dsp_common.h ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
skl_hda_dsp_generic.c ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
skl_nau88l25_max98357a.c ASoC: intel: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer 2020-03-27 14:44:38 +00:00
skl_nau88l25_ssm4567.c ASoC: intel: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer 2020-03-27 14:44:38 +00:00
skl_rt286.c ASoC: intel: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer 2020-03-27 14:44:38 +00:00
sof_da7219_max98373.c ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
sof_maxim_common.c ASoC: Intel: sof_sdw: Add MAX98373 support 2020-06-26 16:10:59 +01:00
sof_maxim_common.h ASoC: Intel: sof_sdw: Add MAX98373 support 2020-06-26 16:10:59 +01:00
sof_pcm512x.c ASoC: sof_pcm512x: remove CONFIG_SND_HDA_CODEC_HDMI condition 2020-05-29 21:23:51 +01:00
sof_rt5682.c ASoC: intel: sof_rt5682: Add support for jsl-max98360a-rt5682 2020-06-26 13:35:19 +01:00
sof_sdw_common.h ASoC: Intel: sof_sdw_rt711: remove properties in card remove 2020-07-20 16:08:20 +01:00
sof_sdw_dmic.c ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
sof_sdw_hdmi.c ASoC: sof-sdw: remove CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC condition 2020-05-29 21:23:50 +01:00
sof_sdw_max98373.c ASoC: Intel: sdw_max98373: add card_late_probe support 2020-07-09 21:01:28 +01:00
sof_sdw_rt700.c ASoC: Intel: sof_sdw_rt700: remap buttons 2020-05-18 14:01:47 +01:00
sof_sdw_rt711.c ASoC: Intel: sof_sdw_rt711: remove properties in card remove 2020-07-20 16:08:20 +01:00
sof_sdw_rt715.c ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
sof_sdw_rt1308.c ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
sof_sdw_rt5682.c ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
sof_sdw.c ASoC: Intel: sof_sdw_rt711: remove properties in card remove 2020-07-20 16:08:20 +01:00
sof_wm8804.c ASoC: Intel: boards: sof-wm8804: support for Hifiberry Digiplus boards 2020-05-01 17:45:22 +01:00