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 D0961222D72; Thu, 12 Dec 2024 17:38:33 +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=1734025113; cv=none; b=hrJNq0yyP1yhGG7mSYvJxRxwqzScd2Tq6NMOhQB+Pm+RPRhfPDGrPdKiQnq3gL0Mh7rCznwZYKbg9PKWyDd9IVc/9VZlgBhGFph0IacDV3LCPyDaufC2SUXH+jNaaV8W58VNkttqKQZqaAW9wtwhzGNjTWGa0SuAqtEbUfws+jU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734025113; c=relaxed/simple; bh=J1uUGLE3cO9Zw2/YYTvDx+peOkkICcVvwKcufkLyh9k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=LBRuJijDdW12G4m+lOA9D+FNKoQAK2yPFmOhghKh7Q66l2GD1Jp5ZQ9ijVwb1b5bhqTSVd7YLSSKuXyUPrjgl4yREUHalOgzqRzvwlS2RHCFdULrn6HYVdfvc1Zk8Ua4hGGQQ1cN2U2IURFdgm/J2IIdGITptzn6kkhZIctUaCE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=SNEnDwdR; 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="SNEnDwdR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 05EF7C4CECE; Thu, 12 Dec 2024 17:38:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1734025113; bh=J1uUGLE3cO9Zw2/YYTvDx+peOkkICcVvwKcufkLyh9k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SNEnDwdRDe32FxW6RadVwpfZTSDY2P2lIoRZVMNH7wzU3z1XHPnPwZv8hewvGU8Yw Z3HOm4e4TQXANI4hnqjYiBYZk3D3i2cVY6eeQ+QeYN9cKSBi+kvtFF//66Y6H95yHT H8/3KHwVx8jW+B58QX60pwf0WxJGQRVYzkXnOicU= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Dmitry Baryshkov , Jinjie Ruan , Philipp Zabel , Sasha Levin Subject: [PATCH 5.4 060/321] drm/imx/ipuv3: Use IRQF_NO_AUTOEN flag in request_irq() Date: Thu, 12 Dec 2024 15:59:38 +0100 Message-ID: <20241212144232.363676167@linuxfoundation.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241212144229.291682835@linuxfoundation.org> References: <20241212144229.291682835@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.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jinjie Ruan [ Upstream commit 40004709a3d3b07041a473a163ca911ef04ab8bd ] 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: 47b1be5c0f4e ("staging: imx/drm: request irq only after adding the crtc") Reviewed-by: Dmitry Baryshkov Signed-off-by: Jinjie Ruan Reviewed-by: Philipp Zabel Link: https://patchwork.freedesktop.org/patch/msgid/20240912083020.3720233-4-ruanjinjie@huawei.com Signed-off-by: Dmitry Baryshkov Signed-off-by: Sasha Levin --- drivers/gpu/drm/imx/ipuv3-crtc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/imx/ipuv3-crtc.c b/drivers/gpu/drm/imx/ipuv3-crtc.c index f19264e91d4db..49a71ee5c583c 100644 --- a/drivers/gpu/drm/imx/ipuv3-crtc.c +++ b/drivers/gpu/drm/imx/ipuv3-crtc.c @@ -411,14 +411,12 @@ static int ipu_crtc_init(struct ipu_crtc *ipu_crtc, } ipu_crtc->irq = ipu_plane_irq(ipu_crtc->plane[0]); - ret = devm_request_irq(ipu_crtc->dev, ipu_crtc->irq, ipu_irq_handler, 0, - "imx_drm", ipu_crtc); + ret = devm_request_irq(ipu_crtc->dev, ipu_crtc->irq, ipu_irq_handler, + IRQF_NO_AUTOEN, "imx_drm", ipu_crtc); if (ret < 0) { dev_err(ipu_crtc->dev, "irq request failed with %d.\n", ret); goto err_put_plane1_res; } - /* Only enable IRQ when we actually need it to trigger work. */ - disable_irq(ipu_crtc->irq); return 0; -- 2.43.0