mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v6 0/2] Enable support for error detection in CSI2RX
@ 2025-04-16 12:19 Yemike Abhilash Chandra
  2025-04-16 12:19 ` [PATCH v6 1/2] dt-bindings: media: cdns,csi2rx.yaml: Add optional interrupts for cdns-csi2rx Yemike Abhilash Chandra
  2025-04-16 12:19 ` [PATCH v6 2/2] media: cadence: csi2rx: Enable csi2rx_err_irq interrupt and add support for VIDIOC_LOG_STATUS Yemike Abhilash Chandra
  0 siblings, 2 replies; 5+ messages in thread
From: Yemike Abhilash Chandra @ 2025-04-16 12:19 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 v6:
- Although the interrupt mask is configured only for cdns-csi2rx source pads
  with active remote connections, the IRQ handler currently records all events
  regardless of whether they are enabled in the mask. Since the events are not
  mutually exclusive, a stream overflow event for a pad without an active remote
  can be recorded if it occurs in parallel with any event enabled in the mask.
  To avoid this, update the handler to record only those events that are explicitly
  enabled in the mask, preventing unnecessary logging for pads without an active
  remote connection.
- Drop the Reviewed-by and Tested-by tags from Jai and Changhuang, as this
  version introduces a minor change in the IRQ handling logic.

v5: https://lore.kernel.org/all/20250228114030.1028443-1-y-abhilashchandra@ti.com/

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           |   8 ++
 drivers/media/platform/cadence/cdns-csi2rx.c  | 131 ++++++++++++++++++
 2 files changed, 139 insertions(+)

-- 
2.34.1


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

end of thread, other threads:[~2025-04-21  3:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-16 12:19 [PATCH v6 0/2] Enable support for error detection in CSI2RX Yemike Abhilash Chandra
2025-04-16 12:19 ` [PATCH v6 1/2] dt-bindings: media: cdns,csi2rx.yaml: Add optional interrupts for cdns-csi2rx Yemike Abhilash Chandra
2025-04-16 12:19 ` [PATCH v6 2/2] media: cadence: csi2rx: Enable csi2rx_err_irq interrupt and add support for VIDIOC_LOG_STATUS Yemike Abhilash Chandra
2025-04-18 15:35   ` Jai Luthra
2025-04-21  3:29   ` Changhuang Liang

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

all inboxes | Powered by JetHome®