Hi Andy,
On Tue, 6 Jun 2023 17:34:22 +0300 Andy Shevchenko andy.shevchenko@gmail.com wrote:
...
Btw, can you avoid using OF APIs? It's better to have device property/fwnode API to be used from day 1.
Hum, this comment was raised in the previous iteration https://lore.kernel.org/linux-kernel/20230501162456.3448c494@jic23-huawei/
I didn't find any equivalent to of_property_read_u32_index() in the device_property_read_*() function family. I mean I did find anything available to get a value from an array using an index.
This is done by reading the entire array at once and then parsing as you wish in the code, device_property_read_u32_array() is for that.
In the previous iteration it was concluded that keeping OF APIs in this series seemed "reasonable".
Maybe, but consider the above.
I see. Will switch to device_property_*() family in the next iteration.
Thanks, Hervé