Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109889080
D46662.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
683 B
Referenced Files
None
Subscribers
None
D46662.diff
View Options
diff --git a/sys/arm64/freescale/imx/clk/imx_clk_composite.c b/sys/arm64/freescale/imx/clk/imx_clk_composite.c
--- a/sys/arm64/freescale/imx/clk/imx_clk_composite.c
+++ b/sys/arm64/freescale/imx/clk/imx_clk_composite.c
@@ -217,6 +217,7 @@
p_names = clknode_get_parent_names(clk);
best_diff = 0;
+ best_parent = -1;
for (p_idx = 0; p_idx != clknode_get_parents_num(clk); p_idx++) {
p_clk = clknode_find_by_name(p_names[p_idx]);
@@ -243,6 +244,10 @@
if (best_diff == INT64_MAX)
return (ERANGE);
+ /* If we didn't find a new best_parent just return */
+ if (best_parent == -1)
+ return (0);
+
if ((flags & CLK_SET_DRYRUN) != 0) {
*fout = best;
return (0);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Feb 11, 7:55 PM (14 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16600272
Default Alt Text
D46662.diff (683 B)
Attached To
Mode
D46662: imx clk: Skip reconfiguring the clock if we don't have a new best_parent
Attached
Detach File
Event Timeline
Log In to Comment