]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
soundwire: bus: Fix race on the creation of the IRQ domain
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Wed, 9 Apr 2025 12:22:39 +0000 (13:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 May 2025 09:13:55 +0000 (11:13 +0200)
commit74515c6da46d64ec36eaa73ba510ff60233fd200
treedc469525d8efdafa3cb98c17cf47682df1f0bf5a
parentb55996939c71a3e1a38f3cdc6a8859797efc9083
soundwire: bus: Fix race on the creation of the IRQ domain

[ Upstream commit fd15594ba7d559d9da741504c322b9f57c4981e5 ]

The SoundWire IRQ domain needs to be created before any slaves are added
to the bus, such that the domain is always available when needed. Move
the call to sdw_irq_create() before the calls to sdw_acpi_find_slaves()
and sdw_of_find_slaves().

Fixes: 12a95123bfe1 ("soundwire: bus: Allow SoundWire peripherals to register IRQ handlers")
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20250409122239.1396489-1-ckeepax@opensource.cirrus.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/soundwire/bus.c