diff options
| author | Charles Keepax <ckeepax@opensource.cirrus.com> | 2026-02-23 12:20:48 +0300 |
|---|---|---|
| committer | Vinod Koul <vkoul@kernel.org> | 2026-02-25 10:53:15 +0300 |
| commit | de67b4ea168f01dac24e328aab6be0802a5c96f6 (patch) | |
| tree | 1146bcb42734197d757643cdf223f5a0f44d2011 | |
| parent | 8167d7f674648cfd428ed49773522f9df5c4fdfd (diff) | |
| download | linux-de67b4ea168f01dac24e328aab6be0802a5c96f6.tar.xz | |
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>
| -rw-r--r-- | drivers/soundwire/slave.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/soundwire/slave.c b/drivers/soundwire/slave.c index f5a3ca3b9dda..ff763b692078 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; |
