msm: vidc: reverse sort allowed_clock_tbl for shima

Clock_table entries are kept as ascending order. So always
highest clk corner is picked from clock_table during clock
calculation. So enable reverse sort for clk table entries
to pick the right corner.

Change-Id: I5adc61368aa15ae69c11a0539dcb05437bf686b4
Signed-off-by: Govindaraj Rajagopal <grajagop@codeaurora.org>
This commit is contained in:
Govindaraj Rajagopal 2020-09-03 18:27:07 +05:30 • committed by Salendarsingh Gaud
commit 4b5d712738

View file

@ -349,7 +349,7 @@ static int msm_vidc_load_allowed_clocks_table(
if (res->allowed_clks_tbl) {
d_vpr_h("allowed-clock-rates populated from platform_data\n");
return 0;
goto exit;
}
if (!of_find_property(pdev->dev.of_node,
@ -367,7 +367,7 @@ static int msm_vidc_load_allowed_clocks_table(
d_vpr_e("%s: failed to read allowed clocks table\n", __func__);
return rc;
}
exit:
sort(res->allowed_clks_tbl, res->allowed_clks_tbl_size,
sizeof(*res->allowed_clks_tbl), cmp, NULL);