From mboxrd@z Thu Jan 1 00:00:00 1970 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 34D2B237FC7; Thu, 12 Dec 2024 16:46:13 +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=1734021973; cv=none; b=CCxQju3aazxX/sRdlxKrN49OjlJIDS/WdhMcUwTv39FCDJe+PCRSyerX7zZ9f1sG0S7LP9x+I4i4YY/NEjlPZE8EiMZYA2TF0AsHHCzFvRC/dY8I6oPq8ZxbiNGsDipArVFRl2oR43XITmnphKM9/qg4C9sVZqVuB/hrFM2ckD4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734021973; c=relaxed/simple; bh=36gR7IawedQHFHLnkAMHbwU4u/TZRSpw7w9KlMvMxGQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=P4bV9r51PqTvIDX3BA6mfkUtqiDqFUkgwMnvJlAYk0foiRiM7b1+4gmTwr0D2yVAV0+mxbj9lyjh3GvZsUJgiGSgGzkgXD/qVRCmGeZ4nYmK0KWTKFliCkYF7tUskXWzirpPUOgs5gWdqlIlaUlmVR7u66ZsDco5fTEH+tTTEGE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zpOmb88/; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="zpOmb88/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9C5E8C4CED0; Thu, 12 Dec 2024 16:46:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1734021973; bh=36gR7IawedQHFHLnkAMHbwU4u/TZRSpw7w9KlMvMxGQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zpOmb88/PE3Z2t1L8w+b5+aUEqUGsztOEg1VgypjTiiUZq9dHDRSIJIGh37FzmQiJ zK0V8wBES9K+298+dhJ1TaVmwYdJ6W48aQrCzUQGzPR4f2AeL6ur48gQNCMNkG4kmL p6fMuMMWkguNvayt348lcWf6RBYkqx/Z6VZJR8jM= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jinjie Ruan , Kevin Hilman , Sasha Levin Subject: [PATCH 5.15 112/565] soc: ti: smartreflex: Use IRQF_NO_AUTOEN flag in request_irq() Date: Thu, 12 Dec 2024 15:55:07 +0100 Message-ID: <20241212144315.908190399@linuxfoundation.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241212144311.432886635@linuxfoundation.org> References: <20241212144311.432886635@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jinjie Ruan [ Upstream commit 16a0a69244240cfa32c525c021c40f85e090557a ] If request_irq() fails in sr_late_init(), there is no need to enable the irq, and if it succeeds, disable_irq() after request_irq() still has a time gap in which interrupts can come. request_irq() with IRQF_NO_AUTOEN flag will disable IRQ auto-enable when request IRQ. Fixes: 1279ba5916f6 ("OMAP3+: SR: disable interrupt by default") Signed-off-by: Jinjie Ruan Link: https://lore.kernel.org/r/20240912034147.3014213-1-ruanjinjie@huawei.com Signed-off-by: Kevin Hilman Signed-off-by: Sasha Levin --- drivers/soc/ti/smartreflex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soc/ti/smartreflex.c b/drivers/soc/ti/smartreflex.c index 4d15587324d4f..f3122101d3a15 100644 --- a/drivers/soc/ti/smartreflex.c +++ b/drivers/soc/ti/smartreflex.c @@ -203,10 +203,10 @@ static int sr_late_init(struct omap_sr *sr_info) if (sr_class->notify && sr_class->notify_flags && sr_info->irq) { ret = devm_request_irq(&sr_info->pdev->dev, sr_info->irq, - sr_interrupt, 0, sr_info->name, sr_info); + sr_interrupt, IRQF_NO_AUTOEN, + sr_info->name, sr_info); if (ret) goto error; - disable_irq(sr_info->irq); } if (pdata && pdata->enable_on_init) -- 2.43.0