mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-06-01 11:33:59 +02:00
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:
committed by
Vinod Koul
parent
8167d7f674
commit
de67b4ea16
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user