opp: Fix adding OPP entries in a wrong order if rate is unavailable
authorDmitry Osipenko <digetx@gmail.com>
Mon, 18 Jan 2021 00:55:13 +0000 (03:55 +0300)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 2 Feb 2021 04:56:26 +0000 (10:26 +0530)
commit32715be4fe95fc98762959f8dff6f9f8a39df28f
tree1ba2e8e867dbd8b787e467e06c3976b555440063
parent1048ba83fb1c00cd24172e23e8263972f6b5d9ac
opp: Fix adding OPP entries in a wrong order if rate is unavailable

Fix adding OPP entries in a wrong (opposite) order if OPP rate is
unavailable. The OPP comparison was erroneously skipped, thus OPPs
were left unsorted.

Tested-by: Peter Geis <pgwipeout@gmail.com>
Tested-by: Nicolas Chauvet <kwizart@gmail.com>
Tested-by: Matt Merhar <mattmerhar@protonmail.com>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/core.c