Hi Kieran,
Thank you for reviewing and sharing your feedback.
On 6/13/2025 7:02 AM, Kieran Bingham wrote:
Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.Yes, I agree, it is best to have documented settings and make calculation for sensor modes instead of array of undocumented settings. However the usual practice is that we send requirements to sensor vendor and they provide us the settings array to be applied. May be we can try to move PLL settings to different array but it is not always just the PLL, there are a lot of undocumented settings which are in sync with PLL and sometimes changing the PLL may result in misbehaviour of the sensor...
Quoting Hao Yao (2025-06-13 05:55:46)
I think it will highlight that werever possible - the code below should
be factored out to support the different configuration requirements.
Cleaning up the large tables of register addresses and making those
configurable functions for example configuring the link rate
independently would be really beneficial!
That's precisely why we continually push for reducing the large
"undocumented register" tables in sensor drivers...
We will try to move PLL settings to separate array but cannot guarantee changing these settings alone will make the sensor functional.
Yes, I agree. We can take on this enhancement either now or in the future, depending on the direction. We'll wait for Sakari's feedback to determine the best way to proceed.+ page = OV05C10_GET_PAGE_NUM(reg);
+ addr = OV05C10_GET_REG_ADDR(reg);
+ ov05c10_switch_page(ov05c10, page, &ret);
+ cci_write(ov05c10->regmap, addr, val, &ret);
+ if (err)
+ *err = ret;
+
+ return ret;
+}
One of the main goals of CCI helpers was to avoid all of the custom
device accessors being duplicated in each driver, so I think extending
the CCI helpers to support page based accesses in some common way would
be beneficial.