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@xxxxxx/ 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