summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd@collabora.com>2023-11-28 22:35:04 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-01-20 11:53:01 +0100
commitba0bc8bf90c9d84807024cfe6b008138ea970981 (patch)
tree12cd0e7d558b88d4a9a10ffaaa7172a4ff62a85d
parente848c4bb56d9b0bf0d222bf311f5eea72d06b1e7 (diff)
downloadlinux-stable-ba0bc8bf90c9d84807024cfe6b008138ea970981.tar.gz
linux-stable-ba0bc8bf90c9d84807024cfe6b008138ea970981.tar.bz2
linux-stable-ba0bc8bf90c9d84807024cfe6b008138ea970981.zip
bus: moxtet: Mark the irq as shared
commit e7830f5a83e96d8cb8efc0412902a03008f8fbe3 upstream. The Turris Mox shares the moxtet IRQ with various devices on the board, so mark the IRQ as shared in the driver as well. Without this loading the module will fail with: genirq: Flags mismatch irq 40. 00002002 (moxtet) vs. 00002080 (mcp7940x) Signed-off-by: Sjoerd Simons <sjoerd@collabora.com> Cc: <stable@vger.kernel.org> # v6.2+ Reviewed-by: Marek BehĂșn <kabel@kernel.org> Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/bus/moxtet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bus/moxtet.c b/drivers/bus/moxtet.c
index 5eb0fe73ddc4..48c18f95660a 100644
--- a/drivers/bus/moxtet.c
+++ b/drivers/bus/moxtet.c
@@ -755,7 +755,7 @@ static int moxtet_irq_setup(struct moxtet *moxtet)
moxtet->irq.masked = ~0;
ret = request_threaded_irq(moxtet->dev_irq, NULL, moxtet_irq_thread_fn,
- IRQF_ONESHOT, "moxtet", moxtet);
+ IRQF_SHARED | IRQF_ONESHOT, "moxtet", moxtet);
if (ret < 0)
goto err_free;