[PATCH v2 07/12] media: imx-mipi-csis: Log per-lane start of transmission errors
Frank Li
Frank.li at nxp.com
Thu Aug 21 08:27:33 PDT 2025
On Thu, Aug 21, 2025 at 03:09:39AM +0300, Laurent Pinchart wrote:
> The CSIS has per-line start of transmission error interrupts. Log them
> all, instead of only the first data lane.
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
> Reviewed-by: Alexander Stein <alexander.stein at ew.tq-group.com>
Reviewed-by: Frank Li <Frank.Li at nxp.com>
> ---
> drivers/media/platform/nxp/imx-mipi-csis.c | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/media/platform/nxp/imx-mipi-csis.c b/drivers/media/platform/nxp/imx-mipi-csis.c
> index 35c8d5309424..67da8326540b 100644
> --- a/drivers/media/platform/nxp/imx-mipi-csis.c
> +++ b/drivers/media/platform/nxp/imx-mipi-csis.c
> @@ -100,7 +100,7 @@
> #define MIPI_CSIS_INT_SRC_NON_IMAGE_DATA (0xf << 28)
> #define MIPI_CSIS_INT_SRC_FRAME_START BIT(24)
> #define MIPI_CSIS_INT_SRC_FRAME_END BIT(20)
> -#define MIPI_CSIS_INT_SRC_ERR_SOT_HS BIT(16)
> +#define MIPI_CSIS_INT_SRC_ERR_SOT_HS(n) BIT((n) + 16)
> #define MIPI_CSIS_INT_SRC_ERR_LOST_FS BIT(12)
> #define MIPI_CSIS_INT_SRC_ERR_LOST_FE BIT(8)
> #define MIPI_CSIS_INT_SRC_ERR_OVER BIT(4)
> @@ -241,7 +241,10 @@ struct mipi_csis_event {
>
> static const struct mipi_csis_event mipi_csis_events[] = {
> /* Errors */
> - { false, MIPI_CSIS_INT_SRC_ERR_SOT_HS, "SOT Error" },
> + { false, MIPI_CSIS_INT_SRC_ERR_SOT_HS(0), "SOT 0 Error" },
> + { false, MIPI_CSIS_INT_SRC_ERR_SOT_HS(1), "SOT 1 Error" },
> + { false, MIPI_CSIS_INT_SRC_ERR_SOT_HS(2), "SOT 2 Error" },
> + { false, MIPI_CSIS_INT_SRC_ERR_SOT_HS(3), "SOT 3 Error" },
> { false, MIPI_CSIS_INT_SRC_ERR_LOST_FS, "Lost Frame Start Error" },
> { false, MIPI_CSIS_INT_SRC_ERR_LOST_FE, "Lost Frame End Error" },
> { false, MIPI_CSIS_INT_SRC_ERR_OVER, "FIFO Overflow Error" },
> --
> Regards,
>
> Laurent Pinchart
>
More information about the linux-arm-kernel
mailing list