All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] bus: moxtet: Mark the irq as shared
@ 2023-11-23 14:23 Sjoerd Simons
  2023-11-23 14:23 ` [PATCH 2/2] bus: moxtet: Add spi device table Sjoerd Simons
  2023-12-07 14:09 ` [PATCH 1/2] bus: moxtet: Mark the irq as shared Marek Behún
  0 siblings, 2 replies; 4+ messages in thread
From: Sjoerd Simons @ 2023-11-23 14:23 UTC (permalink / raw)
  To: Marek Behún; +Cc: linux-kernel

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>
---

 drivers/bus/moxtet.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 
-- 
2.42.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-12-07 14:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-23 14:23 [PATCH 1/2] bus: moxtet: Mark the irq as shared Sjoerd Simons
2023-11-23 14:23 ` [PATCH 2/2] bus: moxtet: Add spi device table Sjoerd Simons
2023-12-07 14:09   ` Marek Behún
2023-12-07 14:09 ` [PATCH 1/2] bus: moxtet: Mark the irq as shared Marek Behún

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.