]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
soundwire: bus: add enumerated Slave device to device list
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Thu, 24 Sep 2020 19:44:29 +0000 (14:44 -0500)
committerVinod Koul <vkoul@kernel.org>
Mon, 28 Sep 2020 05:47:40 +0000 (11:17 +0530)
commitfcb9d730be1d3010e0c8fdc5aaff62836d7a942c
treea137dd77e43bb7bbbb92a07b0030074263c662c7
parent5ec3215e56af8f7ce30c3d9d39029a85616713c0
soundwire: bus: add enumerated Slave device to device list

Currently Slave devices are only added on startup, either from Device
Tree or ACPI entries. However Slave devices that are physically
present on the bus, but not described in platform firmware, will never
be added to the device list. The user/integrator can only know the
list of devices by looking a dynamic debug logs.

This patch suggests adding a Slave device even if there is no matching
DT or ACPI entry, so that we can see this in sysfs entry.

Initial code from Srinivas. Comments, fixes for ACPI probe and edits
of commit message by Pierre.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Co-developed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200924194430.121058-2-pierre-louis.bossart@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/bus.c
drivers/soundwire/bus.h
drivers/soundwire/bus_type.c
drivers/soundwire/slave.c