linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] media: Add line end IRQ to imx-mipi-csis driver
@ 2025-06-06 15:44 Isaac Scott
  2025-06-06 15:44 ` [PATCH v2 1/2] media: platform: Refactor interrupt status registers Isaac Scott
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Isaac Scott @ 2025-06-06 15:44 UTC (permalink / raw)
  To: laurent.pinchart
  Cc: kieran.bingham, rmfrfs, martink, kernel, mchehab, shawnguo,
	s.hauer, kernel, festevam, linux-media, imx, linux-arm-kernel,
	linux-kernel, Isaac Scott

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



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

end of thread, other threads:[~2025-06-07 18:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-06 15:44 [PATCH v2 0/2] media: Add line end IRQ to imx-mipi-csis driver Isaac Scott
2025-06-06 15:44 ` [PATCH v2 1/2] media: platform: Refactor interrupt status registers Isaac Scott
2025-06-07 18:38   ` Laurent Pinchart
2025-06-06 15:44 ` [PATCH v2 2/2] media: platform: Add user line interrupt to imx-mipi-csis driver Isaac Scott
2025-06-07 18:45   ` Laurent Pinchart
2025-06-06 16:17 ` [PATCH v2 0/2] media: Add line end IRQ " Rui Miguel Silva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).