OP-TEE / optee_os

Trusted side of the TEE
Other
1.59k stars 1.07k forks source link

drivers: clk: clk_get_rates_array() returns ordered rates #6953

Closed etienne-lms closed 2 months ago

etienne-lms commented 4 months ago

Explicitly state in clk_get_rates_array() inline description comment that the output rates arrays is ordered by increasing frequency values. This change allows to better fit the sole consumer of this API function that is the SCMI server implementation. SCMI specification states that discrete clock rates list shall follow this order.

Update at91_cpu_opp clock driver to ensure it satisfy this constraint. The SAM platforms that embed this driver (sama7g5) already satisfy this constraints but only at its DTS level. This change ensures the driver will always.

etienne-lms commented 2 months ago

Inline comments fixed and review tag applied.