On 21-10-19, 13:23, Krzysztof Kozlowski wrote: > On Thu, Oct 17, 2019 at 12:12:58PM +0530, Viresh Kumar wrote: > > On 16-10-19, 16:57, Sylwester Nawrocki wrote: > > > From: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> > > > > > > On some SoCs the Adaptive Voltage Scaling (AVS) technique is > > > employed to optimize the operating voltage of a device. At a > > > given frequency, the hardware monitors dynamic factors and either > > > makes a suggestion for how much to adjust a voltage for the > > > current frequency, or it automatically adjusts the voltage > > > without software intervention. Add an API to the OPP library for > > > the former case, so that AVS type devices can update the voltages > > > for an OPP when the hardware determines the voltage should > > > change. The assumption is that drivers like CPUfreq or devfreq > > > will register for the OPP notifiers and adjust the voltage > > > according to suggestions that AVS makes. > > > > > > This patch is derived from [1] submitted by Stephen. > > > [1] https://lore.kernel.org/patchwork/patch/599279/ > > > > > > Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> > > > Signed-off-by: Roger Lu <roger.lu@xxxxxxxxxxxx> > > > [s.nawrocki@xxxxxxxxxxx: added handling of OPP min/max voltage] > > > Signed-off-by: Sylwester Nawrocki <s.nawrocki@xxxxxxxxxxx> > > > --- > > > drivers/opp/core.c | 69 ++++++++++++++++++++++++++++++++++++++++++ > > > include/linux/pm_opp.h | 13 ++++++++ > > > 2 files changed, 82 insertions(+) > > > > Applied. Thanks. > > Hi Viresh, > > Can you provide a stable tag with this patch so I can take soc/samsung > driver? opp-5.4-support-adjust-voltages -- viresh