Skip to content

Commit de67b4e

Browse files
charleskeepaxvinodkoul
authored andcommitted
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>
1 parent 8167d7f commit de67b4e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/soundwire/slave.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ static bool find_slave(struct sdw_bus *bus,
115115
u64 addr;
116116
int ret;
117117

118+
if (acpi_bus_get_status(adev) || !acpi_dev_ready_for_enumeration(adev))
119+
return false;
120+
118121
ret = acpi_get_local_u64_address(adev->handle, &addr);
119122
if (ret < 0)
120123
return false;

0 commit comments

Comments
 (0)