diff options
author | 2021-05-11 13:21:32 +0800 | |
---|---|---|
committer | 2021-06-14 10:12:26 +0530 | |
commit | 29a269c6f54825c643a5c35762a2829ba5be67f6 (patch) | |
tree | e722b054014a87005cc2d3fe0fd60d5c357b68f4 /drivers/soundwire/Kconfig | |
parent | soundwire: cadence: remove the repeated declaration (diff) | |
download | linux-29a269c6f54825c643a5c35762a2829ba5be67f6.tar.gz linux-29a269c6f54825c643a5c35762a2829ba5be67f6.tar.bz2 linux-29a269c6f54825c643a5c35762a2829ba5be67f6.zip |
soundwire: intel: move to auxiliary bus
Now that the auxiliary_bus exists, there's no reason to use platform
devices as children of a PCI device any longer.
This patch refactors the code by extending a basic auxiliary device
with Intel link-specific structures that need to be passed between
controller and link levels. This refactoring is much cleaner with no
need for cross-pointers between device and link structures.
Note that the auxiliary bus API has separate init and add steps, which
requires more attention in the error unwinding paths. The main loop
needs to deal with kfree() and auxiliary_device_uninit() for the
current iteration before jumping to the common label which releases
everything allocated in prior iterations.
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20210511052132.28150-1-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/soundwire/Kconfig')
-rw-r--r-- | drivers/soundwire/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/soundwire/Kconfig b/drivers/soundwire/Kconfig index 016e74230bb7..2b7795233282 100644 --- a/drivers/soundwire/Kconfig +++ b/drivers/soundwire/Kconfig @@ -25,6 +25,7 @@ config SOUNDWIRE_INTEL tristate "Intel SoundWire Master driver" select SOUNDWIRE_CADENCE select SOUNDWIRE_GENERIC_ALLOCATION + select AUXILIARY_BUS depends on ACPI && SND_SOC help SoundWire Intel Master driver. |