Skip to content

Commit 622fecb

Browse files
Keerthyjvireshk
authored andcommitted
opp: ti-opp-supply: Correct the supply in _get_optimal_vdd_voltage call
_get_optimal_vdd_voltage call provides new_supply_vbb->u_volt as the reference voltage while it should be really new_supply_vdd->u_volt. Cc: 4.16+ <stable@vger.kernel.org> # v4.16+ Fixes: 9a835fa ("PM / OPP: Add ti-opp-supply driver") Signed-off-by: Keerthy <j-keerthy@ti.com> Acked-by: Dave Gerlach <d-gerlach@ti.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
1 parent ba03854 commit 622fecb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/opp/ti-opp-supply.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ static int ti_opp_supply_set_opp(struct dev_pm_set_opp_data *data)
288288
int ret;
289289

290290
vdd_uv = _get_optimal_vdd_voltage(dev, &opp_data,
291-
new_supply_vbb->u_volt);
291+
new_supply_vdd->u_volt);
292292

293293
if (new_supply_vdd->u_volt_min < vdd_uv)
294294
new_supply_vdd->u_volt_min = vdd_uv;

0 commit comments

Comments
 (0)