We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf8eb12 commit a69f946Copy full SHA for a69f946
drivers/clk/sunxi-ng/ccu_nkm.c
@@ -34,7 +34,8 @@ static unsigned long ccu_nkm_find_best_with_parent_adj(struct ccu_common *common
34
35
tmp_rate = tmp_parent * _n * _k / _m;
36
37
- if (ccu_is_better_rate(common, rate, tmp_rate, best_rate)) {
+ if (ccu_is_better_rate(common, rate, tmp_rate, best_rate) ||
38
+ (tmp_parent == *parent && tmp_rate == best_rate)) {
39
best_rate = tmp_rate;
40
best_parent_rate = tmp_parent;
41
best_n = _n;
0 commit comments