[PATCH v2 0/2] media: Add line end IRQ to imx-mipi-csis driver
Isaac Scott
isaac.scott at ideasonboard.com
Fri Jun 6 08:44:12 PDT 2025
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.
---
Changes since v1:
- Moved from magic number to enum in status_index
- Clear INT_MSK_1 in enable_interrupts() when on == false
- use local variable in set_params() as in the interrupt handler
- move interrupt handling code outside of spinlock
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
More information about the linux-arm-kernel
mailing list