]> www.infradead.org Git - users/jedix/linux-maple.git/commit
soundwire: intel: add probe-time check on link id
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Mon, 19 Aug 2024 00:55:47 +0000 (08:55 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 19 Aug 2024 11:25:52 +0000 (12:25 +0100)
commitd2234596be2192d9c1ae34f8c7534531191bc433
treef11c6f35342385104ce1aa2e85c49fb7f6eb28f3
parentb27404b2bbf951a11500525dea15681cc970226c
soundwire: intel: add probe-time check on link id

In older platforms, the number of links was constant and hard-coded to
4. Newer platforms can have varying number of links, so we need to add
a probe-time check to make sure the ACPI-reported information with
_DSD properties is aligned with hardware capabilities reported in the
SoundWire LCAP register.

Acked-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Acked-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20240819005548.5867-3-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/soundwire/intel.h
drivers/soundwire/intel_ace2x.c
drivers/soundwire/intel_auxdevice.c
include/linux/soundwire/sdw_intel.h