Re: [PATCH] media: i2c: imx576: Fix line length register

From: Himanshu Bhavani

Date: Fri Oct 09 2026 - 06:31:29 EST


Hi David,

>The line length is written to FRAME_LENGTH_LINES instead of
>LINE_LENGTH_PCK. The value is later overwritten by the VBLANK control,
>so the sensor runs with its default line length while the driver
>reports HBLANK and PIXEL_RATE computed from IMX576_LINE_LENGTH.
>
>Fixes: ee2e9bf41d3e ("media: i2c: add imx576 image sensor driver")
>Signed-off-by: David Carlier <devnexen@xxxxxxxxx>
>---
> drivers/media/i2c/imx576.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/drivers/media/i2c/imx576.c b/drivers/media/i2c/imx576.c
>index 3fcd28d18a51..6243683302c7 100644
>--- a/drivers/media/i2c/imx576.c
>+++ b/drivers/media/i2c/imx576.c
>@@ -507,7 +507,7 @@ static int imx576_set_window(struct imx576 *imx576,
> format = v4l2_subdev_state_get_format(state, 0);
>
> /* Line length */
>- cci_write(imx576->regmap, CCS_R_FRAME_LENGTH_LINES, IMX576_LINE_LENGTH,
>+ cci_write(imx576->regmap, CCS_R_LINE_LENGTH_PCK, IMX576_LINE_LENGTH,
> &ret);
>
> /* Imaging area */
>--
>2.55

Ah, thanks for catching this

Reviewed-by: Himanshu Bhavani <himanshu.bhavani@xxxxxxxxxxxxxxxxx>

Best Regards,
Himanshu