Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp129056rdb; Tue, 5 Dec 2023 00:10:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IGymyhiOD6KPW9Pr79sUYCLAgQGDeEjtFxb6/jOxTlY9zkVUoxjd3v9RjwwnMSd4rldWcRq X-Received: by 2002:a17:903:1cc:b0:1d0:6ffd:610a with SMTP id e12-20020a17090301cc00b001d06ffd610amr1528106plh.44.1701763828159; Tue, 05 Dec 2023 00:10:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701763828; cv=none; d=google.com; s=arc-20160816; b=akfFH+zz0I31RNGMKtdusUW4vrOuHSGBpNbukBHGYU4B/Rw30V1hPSwGBA3RB4TSCi LQj1xryvnygZZufmz4IfEgLGl0PUNpUVhIChRrSANx+U35EuvT8u+P7FYmM9Rn4+b3Yk cwXbhitgJanvZQMtxd39iOb9Hgcwxbn7WzBSFI6GbKKl23jOAr/p6YG+aipqsH+/y8By U4u++M026qWPXHj2au9O/qri7os5QMFpNkGR9rg/1gzn4bSYHB2/WcTUltI5gY2WKe6/ tSnloadOoae6VQ+zNjNo20vn2rNxhIXkMb8LB7TKv7EB0XhhpvARfkO7wzVq3LgrRrdw idew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=l+1kj37uqb9WSBUon+OgtHaKl23Oi0Rgdl4HzowqWBw=; fh=6fL1NhFCGI+wAVvsHH1pL+P1muGn2uwGLcwd3RTuFww=; b=na30WZL0jT7TP8WGl92lXPveS8RrXtt6SljIgWIhVSgVPaMPNyAuVny+gt/3EgHgkF G6Qx4+2lh42BcuWIxqWZ9+0HE1U3Tu09JCS5cOBuM3/r2DYfFAjyUE3dMSfdu+4ubA9L wr2StTyR/ig7KwhK6lN46u4AHXJ/atzgrNBR9ZXmhCwwOGfd4tcTfvb9IH2Y2yOVdo4k 2rzBLrskQTOHnXWWFL9G5GKt/cx7IvfqWrYG54J/PG2arMUyEwAsqwnbRVwWJrgzovuF hQQ15nb4SI1mAOBDliPdE0vjnpDu7tCCP47QjPb5/qTydX2dBxkCKeczlaa1bSvBhTi9 EDWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=HG8dG+Aq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id j5-20020a170902da8500b001cfc170c11asi2454444plx.475.2023.12.05.00.10.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 00:10:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=HG8dG+Aq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 3A76E8026B79; Tue, 5 Dec 2023 00:10:21 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234787AbjLEIKC (ORCPT + 99 others); Tue, 5 Dec 2023 03:10:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231696AbjLEIKA (ORCPT ); Tue, 5 Dec 2023 03:10:00 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4D2211F; Tue, 5 Dec 2023 00:10:05 -0800 (PST) Received: from [127.0.1.1] (91-158-149-209.elisa-laajakaista.fi [91.158.149.209]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 305AF4DB; Tue, 5 Dec 2023 09:09:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1701763763; bh=LBo5JbsGnbR2WsOpAEu7E/zZBgullH/48QZtK26TE84=; h=From:Subject:Date:To:Cc:From; b=HG8dG+AqXVwiQyPqiYmya9Mifng3N9a8QJ9Z0dDtj0NpJt6qqmuOX+3LKcIAfe0p7 9lK0NiTjCbAEWznaPmBEYTrpmaxkmPm9YnLdsvtvVXSGfs/MXET8RcU4OUoZh2D/Ru oGxn4VUmnNt1n8uqi01LTtYoh5Zr4mdxWbSTmT3E= From: Tomi Valkeinen Subject: [PATCH 0/4] media: rkisp1: Fix IRQ related issues Date: Tue, 05 Dec 2023 10:09:31 +0200 Message-Id: <20231205-rkisp-irq-fix-v1-0-f4045c74ba45@ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIALvabmUC/x2MSQqAMAwAvyI5G7ApLvgV8VA01SC4JCBC8e8Wj zMwk8BYhQ36IoHyLSbHnsGVBUxr2BdGmTMDVeQdVTXqJnai6IVRHmRHPnShaT1FyM2pnPX/G8b 3/QBonC03XwAAAA== To: Dafna Hirschfeld , Laurent Pinchart , Mauro Carvalho Chehab , Heiko Stuebner , Paul Elder Cc: Alexander Stein , kieran.bingham@ideasonboard.com, umang.jain@ideasonboard.com, aford173@gmail.com, linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Tomi Valkeinen X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1105; i=tomi.valkeinen@ideasonboard.com; h=from:subject:message-id; bh=LBo5JbsGnbR2WsOpAEu7E/zZBgullH/48QZtK26TE84=; b=owEBbQKS/ZANAwAIAfo9qoy8lh71AcsmYgBlbtrUj5VZRebXyHRSVoljHrBVDzmoMUPSIFx8k /xPcB8r22mJAjMEAAEIAB0WIQTEOAw+ll79gQef86f6PaqMvJYe9QUCZW7a1AAKCRD6PaqMvJYe 9ae2D/9AuwDX4iqBukE8T3ay9UYyBvemxwdq4+ftsjLkKjqCn3iSTKsfOZRc0/WZwzASNSFLeZF x0gxzoscBHX9iAvWvgCCk/oY2pj0ogx7EcaSoA2axHbZzSCBvnfm8UMjcFBWyIxVS1dJLOLAAWP zaclpTbmD2QBMI12o69ydjh2eJ/PbrDQJKdbcRTV22bgMscE66dLuopWcgMeAmfvKUCFkNd+fYL XKrQZGO4Q8z2Xs8axCIiz/2P9CVOvYX+9cYksRxq+94l30bYFtmwGDMsefKvVZ5Oge9JiqxmQk1 wCIqH9GORY5vq/3KadNS/i0jds59CxpqpVCVoh4cAszKOeS6rLJLJEf5TSQ/PEpLVorD2ig7O2B RFAlcm8G6RNNmU2hQnYtayAjS5df54nYTlyyuBYs1IASOiluoZbBnHcPZ+Pvqc+ZrYqqjcQAbxM FFYTpscnQc570dJhuxS7P7ys2K/Pxx8zOIRngOEHoFhuaElR28Lt5PoXA5yzg1NG/3TeD3fV9lR I0zt9KUGeuOwUuN3WHgfVdeSXGt3EmxPmV0A3x+lCJ7cdsg5zidVaQcfcr7X7tosI4xAflCHrlJ dSeHiGLaFFESaNJnLCNa7ZHGxIV/JJyo5dLPLsksdu5iWPlmcVPG+s8wg9awJ08LxhFXjrqWq6D uJFJfN1y/UeE6vw== X-Developer-Key: i=tomi.valkeinen@ideasonboard.com; a=openpgp; fpr=C4380C3E965EFD81079FF3A7FA3DAA8CBC961EF5 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 05 Dec 2023 00:10:21 -0800 (PST) These fix a few IRQ related issues I noticed when testing i.MX8MP. These are based on Paul's recently sent "[PATCH v4 00/11] media: rkisp1: Add support for i.MX8MP" series, but could also be rebased on top of mainline if needed. Signed-off-by: Tomi Valkeinen --- Tomi Valkeinen (4): media: rkisp1: Store IRQ lines media: rkisp1: Fix IRQ handler return values media: rkisp1: Fix IRQ handling due to shared interrupts media: rkisp1: Fix IRQ disable race issue .../platform/rockchip/rkisp1/rkisp1-capture.c | 3 ++ .../media/platform/rockchip/rkisp1/rkisp1-common.h | 13 ++++- .../media/platform/rockchip/rkisp1/rkisp1-csi.c | 17 ++++++- .../media/platform/rockchip/rkisp1/rkisp1-dev.c | 58 ++++++++++++++++++---- .../media/platform/rockchip/rkisp1/rkisp1-isp.c | 23 +++++++-- 5 files changed, 100 insertions(+), 14 deletions(-) --- base-commit: dd19f89b915c203d49e3b23ca02446d4fb05d955 change-id: 20231205-rkisp-irq-fix-e123a8a6732f Best regards, -- Tomi Valkeinen