The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] soundwire: intel: constrain the optional BPT dependency
@ 2026-11-30 12:29 Pengpeng Hou
  2026-11-30 14:09 ` Vinod Koul
  0 siblings, 1 reply; 2+ messages in thread
From: Pengpeng Hou @ 2026-11-30 12:29 UTC (permalink / raw)
  To: vkoul
  Cc: yung-chuan.liao, pierre-louis.bossart, linux-sound, broonie, arnd,
	peter.ujfalusi, linux-kernel, hppiscas

intel_ace2x.c calls the HDA SoundWire BPT helpers when the BPT
provider is enabled. SOUNDWIRE_INTEL can be selected independently
of the SOF platform drivers, so SOUNDWIRE_INTEL=y with
SND_SOC_SOF_HDA_GENERIC=m can still leave SND_SOF_SOF_HDA_SDW_BPT=m.
The IS_ENABLED() declarations then produce unresolved hda_sdw_bpt_*
references from built-in code.

The existing SOF selections handle their own selection paths but do
not constrain an independently enabled SoundWire driver. Add the
optional dependency on the BPT provider, as already done for HDA
MLINK. Leave the BPT-disabled configuration using the existing
stubs.

The issue was found by our static-analysis tool and manually reviewed.

Fixes: 4c1ce9f37d8a ("soundwire: intel_ace2x: add BPT send_async/wait callbacks")
Link: https://lore.kernel.org/all/20260611132310.137688-2-arnd@kernel.org/
Signed-off-by: Pengpeng Hou <hppiscas@163.com>
---
AI assistance: gpt 5 (patch preparation and review).

 drivers/soundwire/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/soundwire/Kconfig b/drivers/soundwire/Kconfig
index 196a7da..99f23b4 100644
--- a/drivers/soundwire/Kconfig
+++ b/drivers/soundwire/Kconfig
@@ -41,6 +41,7 @@ config SOUNDWIRE_INTEL
 	depends on ACPI && SND_SOC
 	depends on SND_SOC_SOF_HDA_MLINK || !SND_SOC_SOF_HDA_MLINK
 	depends on SND_HDA_CORE || !SND_HDA_ALIGNED_MMIO
+	depends on SND_SOF_SOF_HDA_SDW_BPT || !SND_SOF_SOF_HDA_SDW_BPT
 	help
 	  SoundWire Intel Master driver.
 	  If you have an Intel platform which has a SoundWire Master then

base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] soundwire: intel: constrain the optional BPT dependency
  2026-11-30 12:29 [PATCH] soundwire: intel: constrain the optional BPT dependency Pengpeng Hou
@ 2026-11-30 14:09 ` Vinod Koul
  0 siblings, 0 replies; 2+ messages in thread
From: Vinod Koul @ 2026-11-30 14:09 UTC (permalink / raw)
  To: Pengpeng Hou
  Cc: yung-chuan.liao, pierre-louis.bossart, linux-sound, broonie, arnd,
	peter.ujfalusi, linux-kernel

On 30-11-26, 20:29, Pengpeng Hou wrote:
> intel_ace2x.c calls the HDA SoundWire BPT helpers when the BPT
> provider is enabled. SOUNDWIRE_INTEL can be selected independently
> of the SOF platform drivers, so SOUNDWIRE_INTEL=y with
> SND_SOC_SOF_HDA_GENERIC=m can still leave SND_SOF_SOF_HDA_SDW_BPT=m.
> The IS_ENABLED() declarations then produce unresolved hda_sdw_bpt_*
> references from built-in code.
> 
> The existing SOF selections handle their own selection paths but do
> not constrain an independently enabled SoundWire driver. Add the
> optional dependency on the BPT provider, as already done for HDA
> MLINK. Leave the BPT-disabled configuration using the existing
> stubs.
> 
> The issue was found by our static-analysis tool and manually reviewed.

It is a build issue, should be easy to repro right? Can you please do
that and share the config and error log please

-- 
~Vinod

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-30 14:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30 12:29 [PATCH] soundwire: intel: constrain the optional BPT dependency Pengpeng Hou
2026-11-30 14:09 ` Vinod Koul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox