Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8FDF5375AC8 for ; Sat, 28 Feb 2026 18:01:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772301691; cv=none; b=AWZrwM6w08lu1OIU0Eb852wlkWUPyFcMtZxWThwCUiKqjzTE+3dOTDx9IxGU3jVHSXKPnVjt28MQa3cGkkwNFTAurMkYcmypX3WrjkT8mTDHL02pOpmv9jFkOWXjCizM2AaXbzZcsRSgPSuw29O63hbUBGPgZ9gNdHuuefHtD78= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772301691; c=relaxed/simple; bh=dRLhpepTXNwFk1pQVeRp1JsaIP6PeI4quhvOVy3MNU0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=I3aEFSaPImYWfRtevkQNhUjXQhK/M7GMJOgBYynwtG8FBvGLW+4VEy32mAvbEiWldxy0HbUh65rO7PNhyPfqz315vvZs6Bwufi9wE4l4+Od22wXuHUwGysvjvzrI/hj72gf3hXh2ZO5kWQ7x5H2ImwV8+3ixezEpouxdYIqmIRU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pH3PL6uW; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pH3PL6uW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C17CEC19423; Sat, 28 Feb 2026 18:01:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772301691; bh=dRLhpepTXNwFk1pQVeRp1JsaIP6PeI4quhvOVy3MNU0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pH3PL6uW6lGjVDLOzRBSQQPM6mcqzNAjZicGATySfln4sQgnCW3eT/KiU99BcE8hp 6bp5O9aLk2X29H3+x2nrVg1CkJ7GG0L/Gu8kv/idjD9Ev4ks7rwjKazgPDxyLKBqfF h/KlT2NmWM+Oztt1qg8hg7yWK9/Ror73y3uQVlC+OG8iCBrr6PCvti/xfWxNvJVBLD 3f3I2icSGddMgjxKSebYXVN5Zdn+771Gw9N6jIxe/u47rDMCOsQaoaXO10F9u00l/u Hlr1uUcxLPaLkmmrUkIz0kVcLuUR6EITmkvcgj9j42eLczyb/gioy8wXf4SgxRD4Sd FaSbFQi2Aij1Q== From: Sasha Levin To: patches@lists.linux.dev Cc: Sebastian Andrzej Siewior , Thomas Gleixner , Charles Keepax , Andy Shevchenko , Sasha Levin Subject: [PATCH 6.12 082/385] mfd: wm8350-core: Use IRQF_ONESHOT Date: Sat, 28 Feb 2026 12:55:04 -0500 Message-ID: <20260228180011.1568201-82-sashal@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260228180011.1568201-1-sashal@kernel.org> References: <20260228180011.1568201-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Sebastian Andrzej Siewior [ Upstream commit 553b4999cbe231b5011cb8db05a3092dec168aca ] Using a threaded interrupt without a dedicated primary handler mandates the IRQF_ONESHOT flag to mask the interrupt source while the threaded handler is active. Otherwise the interrupt can fire again before the threaded handler had a chance to run. Mark explained that this should not happen with this hardware since it is a slow irqchip which is behind an I2C/ SPI bus but the IRQ-core will refuse to accept such a handler. Set IRQF_ONESHOT so the interrupt source is masked until the secondary handler is done. Fixes: 1c6c69525b40e ("genirq: Reject bogus threaded irq requests") Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Thomas Gleixner Reviewed-by: Charles Keepax Reviewed-by: Andy Shevchenko Link: https://patch.msgid.link/20260128095540.863589-16-bigeasy@linutronix.de Signed-off-by: Sasha Levin --- include/linux/mfd/wm8350/core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/mfd/wm8350/core.h b/include/linux/mfd/wm8350/core.h index a3241e4d75486..4816d4f472101 100644 --- a/include/linux/mfd/wm8350/core.h +++ b/include/linux/mfd/wm8350/core.h @@ -663,7 +663,7 @@ static inline int wm8350_register_irq(struct wm8350 *wm8350, int irq, return -ENODEV; return request_threaded_irq(irq + wm8350->irq_base, NULL, - handler, flags, name, data); + handler, flags | IRQF_ONESHOT, name, data); } static inline void wm8350_free_irq(struct wm8350 *wm8350, int irq, void *data) -- 2.51.0