soundwire: slave: Don't register devices that are disabled in ACPI

If a piece of hardware is disabled in ACPI it shouldn't be added to the
bus. Add code to handle this similar to other buses like SPI/I2C.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>
Link: https://patch.msgid.link/20260223092048.3695135-1-ckeepax@opensource.cirrus.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
This commit is contained in:
Charles Keepax
2026-02-23 09:20:48 +00:00
committed by Vinod Koul
parent 8167d7f674
commit de67b4ea16
+3
View File
@@ -115,6 +115,9 @@ static bool find_slave(struct sdw_bus *bus,
u64 addr;
int ret;
if (acpi_bus_get_status(adev) || !acpi_dev_ready_for_enumeration(adev))
return false;
ret = acpi_get_local_u64_address(adev->handle, &addr);
if (ret < 0)
return false;