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

Commit 0de4775c authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "clk: do not vote for vdd_class level with 0 Hz rate_max"

parents 56dd6b1b ff5ce501
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -606,7 +606,8 @@ static int clk_find_vdd_level(struct clk_core *clk, unsigned long rate)
	 */
	for (level = 0; level < clk->num_rate_max; level++)
		if (DIV_ROUND_CLOSEST(rate, 1000) <=
				DIV_ROUND_CLOSEST(clk->rate_max[level], 1000))
				DIV_ROUND_CLOSEST(clk->rate_max[level], 1000) &&
		    clk->rate_max[level] > 0)
			break;

	if (level == clk->num_rate_max) {