Skip to content

Commit 53d3b87

Browse files
Liang Chenrkhuangtao
authored andcommitted
soc: rockchip: opp_select: fix bug for calibrate opp-table by pvtpll
volt will be used as start_volt in next loop, so ensure volt is not greater than volt_max. Fixes: b6c7d8f (soc: rockchip: opp_select: calibrate opp-table by pvtpll) Change-Id: Ifc8f75075ad137483d1c8f603423b2d5f2e119ce Signed-off-by: Liang Chen <[email protected]>
1 parent 4856e30 commit 53d3b87

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/soc/rockchip/rockchip_opp_select.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,8 @@ void rockchip_pvtpll_calibrate_opp(struct rockchip_opp_info *info)
876876
delta1 = abs(pvtpll_rate - rate);
877877
} while (delta1 < delta0);
878878

879-
info->opp_table[i].u_volt = volt - cur_step;
879+
volt -= cur_step;
880+
info->opp_table[i].u_volt = volt;
880881
}
881882

882883
i = 0;

0 commit comments

Comments
 (0)