From: David Carlier <devnexen@gmail.com>
To: sakari.ailus@linux.intel.com, mchehab@kernel.org
Cc: himanshu.bhavani@siliconsignals.io,
hardevsinh.palaniya@siliconsignals.io,
linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
David Carlier <devnexen@gmail.com>
Subject: [PATCH] media: i2c: imx576: Fix line length register
Date: Fri, 9 Oct 2026 05:46:55 +0100 [thread overview]
Message-ID: <20261009044655.7586-1-devnexen@gmail.com> (raw)
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@gmail.com>
---
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.0
next reply other threads:[~2026-10-09 4:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-09 4:46 David Carlier [this message]
2026-10-09 10:31 ` [PATCH] media: i2c: imx576: Fix line length register Himanshu Bhavani
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261009044655.7586-1-devnexen@gmail.com \
--to=devnexen@gmail.com \
--cc=hardevsinh.palaniya@siliconsignals.io \
--cc=himanshu.bhavani@siliconsignals.io \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=sakari.ailus@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.