Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Charles Keepax and committed by
Vinod Koul
de67b4ea 8167d7f6

+3
+3
drivers/soundwire/slave.c
··· 115 115 u64 addr; 116 116 int ret; 117 117 118 + if (acpi_bus_get_status(adev) || !acpi_dev_ready_for_enumeration(adev)) 119 + return false; 120 + 118 121 ret = acpi_get_local_u64_address(adev->handle, &addr); 119 122 if (ret < 0) 120 123 return false;