opp: Update bandwidth requirements based on scaling up/down
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 28 Jan 2021 10:00:00 +0000 (15:30 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 2 Feb 2021 05:00:53 +0000 (10:30 +0530)
commit870d5d963972ddefa83a09a7dbe4bef01f0b35b8
tree08104b917072ca5d0f29c87a2d6b6e40b96a926c
parent7eba0c7641b0009818e469dbfcdd87a0155ab9d4
opp: Update bandwidth requirements based on scaling up/down

The bandwidth must be scaled at a different point in the code flow based
on if we are scaling up or down the frequency, otherwise this may cause
undesired effects as the device will try to use more of the memory
bandwidth which may be shared across several devices. Much like how
regulators and required-opps are programmed.

Reported-by: Dmitry Osipenko <digetx@gmail.com>
Reported-by: Akhil P Oommen <akhilpo@codeaurora.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Tested-by: Dmitry Osipenko <digetx@gmail.com>
drivers/opp/core.c