From: Charles Keepax Date: Mon, 23 Feb 2026 09:20:48 +0000 (+0000) Subject: soundwire: slave: Don't register devices that are disabled in ACPI X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=de67b4ea168f01dac24e328aab6be0802a5c96f6;p=thirdparty%2Fkernel%2Flinux.git 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 Reviewed-by: Pierre-Louis Bossart Link: https://patch.msgid.link/20260223092048.3695135-1-ckeepax@opensource.cirrus.com Signed-off-by: Vinod Koul --- diff --git a/drivers/soundwire/slave.c b/drivers/soundwire/slave.c index f5a3ca3b9dda4..ff763b692078d 100644 --- a/drivers/soundwire/slave.c +++ b/drivers/soundwire/slave.c @@ -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;