在 2024/8/26 18:33, Andy Shevchenko 写道:
On Mon, Aug 26, 2024 at 11:03:20AM +0800, Rong Qianfeng wrote:
在 2024/8/23 23:33, Andy Shevchenko 写道:
On Fri, Aug 23, 2024 at 11:51:15AM +0800, Rong Qianfeng wrote:
...
ret = of_property_read_u32(pdev->dev.of_node, "clock-frequency",
&clk_freq);
(side note: this driver should use i2c_timings and respective I2C core
APIs instead of this)
Sorry, I didn't fully understand what you meant, it's my problem. I guess
you are suggesting to use an API like i2c_parse_fw_timings() to get the
clock-frequency?
Yes.
Very good point, Thanks for letting me know about these advanced APIs.
I think we may need some other patch series to discuss how to implement it,
because there are many places in the i2c that need such modifications, and
these modifications are not suitable in the current patch series.