Thread (9 messages) 9 messages, 4 authors, 2026-01-02

Re: [PATCH v7 2/2] media: i2c: add os05b10 image sensor driver

From: Himanshu Bhavani <himanshu.bhavani@siliconsignals.io>
Date: 2026-01-02 06:10:14
Also in: linux-media, lkml

Hi Sakari,
On Thu, Jan 01, 2026 at 06:19:02AM +0000, Himanshu Bhavani wrote:
quoted
quoted
quoted
+#define OS05B10_PIXEL_RATE           (480 * HZ_PER_MHZ)
Here pixel rate should not be hardcoded, it'd be computed in runtime
as 600MHz * 2 * 4 lanes / 10 bpp = 480MHz.

The sensor may be wired over 2 lanes or (presumably) it can stream 8 bpp data.
We are not supporting 2 lanes right now, driver supports only for 4 lanes and
10 bpp data. So technically OS05B10_PIXEL_RATE will never change.
For reference I will add OS05B10_PIXEL_RATE calculation in comments.
I would prefer the hardcoded at the moment. Other than this comment
I will resolve and send new version.
The pixel rate on the pixel array may be disconnected from the link
frequency (and throughput) -- it may be more (with e.g. binning) or less,
depending on the sensor of course. Calculating it, if possible, is always
better than using a fixed value; experience has shown these are often
simply incorrect and sometimes not updated when other changes are made (and
same goes for the link frequency).
Okay, I just want to know if this is non-blocking comment and we can go ahead
with current version of driver.

Meanwhile my colleague Tarang is working on some features and he is planning
to send a series on top of this driver. If he takes up this comment in that
series will it be okay with you?

And also I have already sent next revision v8.
Please let me know.

--
Best Regards,
Himanshu Bhavani
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help