opp: Allow opp-level to be set to 0
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 11 Sep 2020 09:26:18 +0000 (14:56 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Wed, 16 Sep 2020 08:32:34 +0000 (14:02 +0530)
commita5663c9b1e31c00e0bdfaf4d92eb51358fc3950f
treef00652e9807ceca56e4926ada69b10d6ac435084
parentcb60e9602cce1593eb1e9cdc8ee562815078a354
opp: Allow opp-level to be set to 0

The DT bindings don't put such a constraint, nor should the kernel. It
is perfectly fine for opp-level to be set to 0, if we need to put the
performance state votes for a domain for a particular OPP.

Reported-by: Stephan Gerhold <stephan@gerhold.net>
Tested-by: Stephan Gerhold <stephan@gerhold.net>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/core.c
drivers/opp/of.c