OSDN Git Service

soundwire: ignore uniqueID when irrelevant
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Tue, 22 Oct 2019 23:48:08 +0000 (18:48 -0500)
committerVinod Koul <vkoul@kernel.org>
Sat, 9 Nov 2019 11:16:56 +0000 (16:46 +0530)
commit2e8c4ad1f04413a4a67ef10746a7566007d2ed55
treec6f1aad2c3be9cea32458f99749e245e91bddacd
parentde5b174b3bc8b8fa4921a7d6bd4b2e646120640d
soundwire: ignore uniqueID when irrelevant

The uniqueID is useful when there are two or more devices of the same
type (identical manufacturer ID, part ID) on the same link.

When there is a single device of a given type on a link, its uniqueID
is irrelevant. It's not uncommon on actual platforms to see variations
of the uniqueID, or differences between devID registers and ACPI _ADR
fields.

This patch suggests a filter on startup to identify 'single' devices
and tag them accordingly. The uniqueID is then not used for the probe,
and the device name omits the uniqueID as well.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20191022234808.17432-4-pierre-louis.bossart@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/bus.c
drivers/soundwire/slave.c