
13 Dec
2024
13 Dec
'24
2:11 a.m.
On Thu, 07 Mar 2024 18:04:32 -0600, Sam Protsenko wrote:
Sometimes clocks provided to a consumer might not have .set_rate operation (like gate or mux clocks), but have CLK_SET_PARENT_RATE flag set. In that case it's usually possible to find a parent up the tree which is capable of setting the rate (div, pll, etc). Implement a simple lookup procedure for such cases, to traverse the clock tree until .set_rate capable parent is found, and use that parent to actually change the rate. The search will stop once the first .set_rate capable clock is found, which is usually enough to handle most cases.
[...]
Applied to u-boot/next, thanks!
--
Tom