]> git.hungrycats.org Git - linux/commit
soundwire: bus_type: Create IRQ mapping before calling driver probe()
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Mon, 10 Aug 2026 10:40:44 +0000 (11:40 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 14 Aug 2026 12:53:25 +0000 (13:53 +0100)
commitee1811eacdbba15a374957c2bcc6ba7102e2b781
tree2d79c8b93abf1f8469c40b04b095dbf4c5289b74
parenta075fef187a6fe8ef99b022a69bc0b9ed584ba93
soundwire: bus_type: Create IRQ mapping before calling driver probe()

Call sdw_irq_create_mapping() before calling the peripheral driver
probe() so that it is possible to request the IRQ during probe().

Previously creation of the mapping was conditional on the use_domain_irq
flag in the driver properties. But these are filled in after probe(),
which meant it wasn't possible to request the IRQ during probe(). This
was ok for MFD drivers where only children requested the IRQ. But for
normal drivers it led to the non-standard behavior of having to defer
requesting the IRQ until after probe().

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Acked-by: Vinod Koul <vkoul@kernel.org>
Link: https://patch.msgid.link/20260810104045.60701-4-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/soundwire/bus_type.c