Skip to content

Commit

Permalink
kmod: fix hda-sdw-bpt dependency
Browse files Browse the repository at this point in the history
We need to remove the SoundWire parts before removing hda-sdw-bpt

rmmod: ERROR: Module snd_sof_intel_hda_common is in use by:
snd_sof_intel_hda_sdw_bpt

Link: https://sof-ci.01.org/linuxpr/PR4679/build1181/devicetest/index.html?model=MTLP_SDW_AIOC&testcase=check-kmod-load-unload
Signed-off-by: Pierre-Louis Bossart <[email protected]>
  • Loading branch information
plbossart committed Jan 25, 2024
1 parent a7e28c8 commit 70632d9
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions tools/kmod/sof_remove.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,19 @@ remove_module snd_soc_hda_codec
# platform drivers
#-------------------------------------------
remove_module snd_sof_intel_hda_generic

#-------------------------------------------
# SoundWire/SOF parts
#-------------------------------------------
remove_module soundwire_intel_init
remove_module soundwire_intel
remove_module soundwire_cadence
remove_module soundwire_generic_allocation
remove_module snd_sof_intel_hda_sdw_bpt

#-------------------------------------------
# platform drivers - take2
#-------------------------------------------
remove_module snd_sof_intel_hda_common
remove_module snd_sof_intel_hda
remove_module snd_sof_intel_ipc
Expand Down Expand Up @@ -255,15 +268,6 @@ remove_module snd_hda_codec_generic

remove_module snd_soc_wm8960

#-------------------------------------------
# SoundWire/SOF parts
#-------------------------------------------
remove_module soundwire_intel_init
remove_module soundwire_intel
remove_module soundwire_cadence
remove_module soundwire_generic_allocation
remove_module snd_sof_intel_hda_sdw_bpt

#-------------------------------------------
# Remaining core SOF parts
#-------------------------------------------
Expand Down

0 comments on commit 70632d9

Please sign in to comment.