Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6447cd16 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "clk: qcom: clock-generic: Fix parent selection loop exit condition"

parents 61e24d37 deb052f1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -113,7 +113,7 @@ static int mux_set_rate(struct clk *c, unsigned long rate)
	if (new_parent == c->parent && rate == c->rate)
		return 0;

	for (i = 0; i < mux->num_parents && !new_parent; i++) {
	for (i = 0; i < mux->num_parents && !(!i && new_parent); i++) {
		if (clk_round_rate(mux->parents[i].src, rate) == rate) {
			new_parent = mux->parents[i].src;
			if (!mux->try_new_parent)