[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250217130013.2802293-1-y-abhilashchandra@ti.com>
Date: Mon, 17 Feb 2025 18:30:11 +0530
From: Yemike Abhilash Chandra <y-abhilashchandra@...com>
To: <linux-media@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<devicetree@...r.kernel.org>
CC: <mripard@...nel.org>, <mchehab@...nel.org>, <jai.luthra@...ux.dev>,
<robh@...nel.org>, <krzk+dt@...nel.org>, <conor+dt@...nel.org>,
<devarsht@...com>, <vaishnav.a@...com>, <r-donadkar@...com>,
<u-kumar1@...com>, <y-abhilashchandra@...com>
Subject: [PATCH v2 0/2] Enable support for error detection in CSI2RX
This patch series enables the csi2rx_err_irq interrupt to record any errors
that occur during streaming. It also adds support for the VIDIOC_LOG_STATUS
ioctl, which outputs the current device status to the kernel log.
The IRQ handler records any errors encountered during streaming.
Additionally, VIDIOC_LOG_STATUS can be invoked from user space to retrieve
the latest status.
Changelog:
Changes in v2:
- Address Krzysztof's review comment to remove flexibility while adding
interrupts.
- Address Jai's review comment to drop support VIDIOC_LOG_STATUS on a
video node.
- Address Jai's review comment to get interrupt at probe instead of
start_stream.
- Address Jai's review comment to change dev_warn to dev_dbg when there
is no interrupt defined in DT.
V1: https://lore.kernel.org/all/20250212131244.1397722-1-y-abhilashchandra@ti.com/
Logs with interrupt in DT: https://gist.github.com/Yemike-Abhilash-Chandra/fb887bda738da91ea2a24690cd7b0818
Logs without interrupt in DT: https://gist.github.com/Yemike-Abhilash-Chandra/18347df18041e43b78e9738263d77aa9
Yemike Abhilash Chandra (2):
dt-bindings: media: cdns,csi2rx.yaml: Add optional interrupts for
cdns-csi2rx
media: cadence: csi2rx: Enable csi2rx_err_irq interrupt and add
support for VIDIOC_LOG_STATUS
.../bindings/media/cdns,csi2rx.yaml | 10 ++
drivers/media/platform/cadence/cdns-csi2rx.c | 102 +++++++++++++++++-
2 files changed, 111 insertions(+), 1 deletion(-)
--
2.34.1
Powered by blists - more mailing lists