public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2]  Enable support for error detection in CSI2RX
@ 2025-02-17 13:00 Yemike Abhilash Chandra
  2025-02-17 13:00 ` [PATCH v2 1/2] dt-bindings: media: cdns,csi2rx.yaml: Add optional interrupts for cdns-csi2rx Yemike Abhilash Chandra
  2025-02-17 13:00 ` [PATCH v2 2/2] media: cadence: csi2rx: Enable csi2rx_err_irq interrupt and add support for VIDIOC_LOG_STATUS Yemike Abhilash Chandra
  0 siblings, 2 replies; 12+ messages in thread
From: Yemike Abhilash Chandra @ 2025-02-17 13:00 UTC (permalink / raw)
  To: linux-media, linux-kernel, devicetree
  Cc: mripard, mchehab, jai.luthra, robh, krzk+dt, conor+dt, devarsht,
	vaishnav.a, r-donadkar, u-kumar1, y-abhilashchandra

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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2025-02-21  5:14 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-17 13:00 [PATCH v2 0/2] Enable support for error detection in CSI2RX Yemike Abhilash Chandra
2025-02-17 13:00 ` [PATCH v2 1/2] dt-bindings: media: cdns,csi2rx.yaml: Add optional interrupts for cdns-csi2rx Yemike Abhilash Chandra
2025-02-18  8:32   ` Jai Luthra
2025-02-18  9:35     ` 回复: " Changhuang Liang
2025-02-18 15:37       ` Jai Luthra
2025-02-21  5:01         ` Yemike Abhilash Chandra
2025-02-18  8:38   ` Krzysztof Kozlowski
2025-02-17 13:00 ` [PATCH v2 2/2] media: cadence: csi2rx: Enable csi2rx_err_irq interrupt and add support for VIDIOC_LOG_STATUS Yemike Abhilash Chandra
2025-02-18  8:09   ` Jai Luthra
2025-02-21  5:11     ` Yemike Abhilash Chandra
2025-02-19  3:02   ` Changhuang Liang
2025-02-21  5:13     ` Yemike Abhilash Chandra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox