From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B0CA4C61CE8 for ; Fri, 6 Jun 2025 12:31:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=zZdEVwuPXrcp9I1rbjEdvww0J7FlwEqxiWdsz0h6F0c=; b=MrsGlGeV+pj3AwMi1yx9wWT5ep p0k1oJWUWsQlFjOHq8yESHp8vPk/LhXIfKJ4yw/AwwW9NOt/7RCY3Zpyg5hyIaRXvSwbyAZNmhkAt AHvbo02Fwf4Vz4RjbDTJZQy2T1p8X06iip6ZVMaaohFSA2JDjwj9cQU4mkB7NsXeXKaGzLqbv4cdN /4uWvfYrm6w/gZ4e60kmUT5n4ROaYz9zeZvMwFe3QmmiCd21zmoCNWjgKPAm5DXkaNggIjsKKvI0b U/gZZnd1KXZUtco08Ai03LPhOHdokpU9yjDdqOVJ4evZec7H0lh1xdBIaEP0VZij3vLCkuz4cAYDn +slgGSYw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uNWEJ-00000000F9n-3XhF; Fri, 06 Jun 2025 12:31:27 +0000 Received: from perceval.ideasonboard.com ([213.167.242.64]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uNVxf-00000000DRH-12QZ for linux-arm-kernel@lists.infradead.org; Fri, 06 Jun 2025 12:14:16 +0000 Received: from isaac-ThinkPad-T16-Gen-2.localdomain (cpc90716-aztw32-2-0-cust408.18-1.cable.virginm.net [86.26.101.153]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 250D211DD; Fri, 6 Jun 2025 14:14:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1749212046; bh=1WJsWhTzFsCD3REzePOpGgsNVGMiEg6va/vljjL/0II=; h=From:To:Cc:Subject:Date:From; b=ZDQjazCJTHMo4obbI5CXD2mDzuNpEWRIbUIi9XKVgSj9VTzvWrRKtrMAdBDUCNrvO 3qCVZtM8hD3f9KVRo49qQAldwRaGLmF3+ni2QtA+NY+zA7qgEviGals6xso/VawfLS PJbEuuUsaiHTZ9A1u1VOyhAFKJdKfIMkSM1IJIG4= From: Isaac Scott To: laurent.pinchart@ideasonboard.com Cc: kieran.bingham@ideasonboard.com, rmfrfs@gmail.com, martink@posteo.de, kernel@puri.sm, mchehab@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-media@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Isaac Scott Subject: [PATCH 0/2] media: Add line end IRQ to imx-mipi-csis driver Date: Fri, 6 Jun 2025 13:14:01 +0100 Message-ID: <20250606121403.498153-1-isaac.scott@ideasonboard.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250606_051415_751257_CC8820FD X-CRM114-Status: UNSURE ( 9.72 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Many boards, such as the NXP i.MX 8M Plus, feature multiple interrupt registers. This series refactors interrupt status register debug handling to make it more intuitive to add other registers such as LINE_END, which has an entire register containing only one interrupt. Previously, the mipi_csi_events[] list contained a debug enable field, and this replaces that with a status_index, which indicates which status register contains the mask for the interrupt. The second patch adds the user line interrupt, which is useful for debugging, as it allows a user to trigger an interrupt after the MIPI CSI receiver has counted a configurable number of lines. This can make it possible to discern the true resolution of the image stream reaching the CSI receiver. It adds an entry to debugfs which lets users choose how many lines are needed to trigger the interrupt, and can be disabled both within and outside streaming by setting the value to 0. Isaac Scott (2): media: platform: Refactor interrupt status registers media: platform: Add user line interrupt to imx-mipi-csis driver drivers/media/platform/nxp/imx-mipi-csis.c | 107 ++++++++++++++------- 1 file changed, 74 insertions(+), 33 deletions(-) -- 2.43.0