1. 18 Feb, 2021 2 commits
    • Rafael J. Wysocki's avatar
      Merge branch 'opp/linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm · 8521ce52
      Rafael J. Wysocki authored
      Pull an operating performance points (OPP) framework fix for 5.12
      from Viresh Kumar:
      
      "Single patch to fix an issue where a frequency update may get
       skipped."
      
      * 'opp/linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm:
        opp: Don't skip freq update for different frequency
      8521ce52
    • Jonathan Marek's avatar
      opp: Don't skip freq update for different frequency · de04241a
      Jonathan Marek authored
      We skip the OPP update if the current and target OPPs are same. This is
      fine for the devices that don't support frequency but may cause issues
      for the ones that need to program frequency.
      
      An OPP entry doesn't really signify a single operating frequency but
      rather the highest frequency at which the other properties of the OPP
      entry apply. And we may reach here with different frequency values,
      while all of them would point to the same OPP entry in the OPP table.
      
      We just need to update the clock frequency in that case, though in order
      to not add special exit points we reuse the code flow from a normal
      path.
      
      While at it, rearrange the conditionals in the 'if' statement to check
      'enabled' flag at the end.
      
      Fixes: 81c4d8a3 ("opp: Keep track of currently programmed OPP")
      Signed-off-by: default avatarJonathan Marek <jonathan@marek.ca>
      [ Viresh: Improved commit log and subject, rename current_freq as
      	  current_rate, document it, remove local variable and rearrange
      	  code. ]
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      de04241a
  2. 08 Feb, 2021 1 commit
    • Rafael J. Wysocki's avatar
      Merge branch 'opp/linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm · 992b9ff1
      Rafael J. Wysocki authored
      Pull operating performance points (OPP) changes for v5.12 from Viresh
      Kumar:
      
      "- Generic cleanups across the OPP core (Dmitry Osipenko, Viresh
         Kumar).
      
       - New OPP helpers dev_pm_opp_find_level_ceil(),
         dev_pm_opp_get_required_pstate(), dev_pm_opp_sync_regulators(),
         devm_pm_opp_register_set_opp_helper(),
         dev_pm_opp_of_add_table_noclk() and devm_pm_opp_attach_genpd()
         (Dmitry Osipenko, Viresh Kumar).
      
       - Allow required OPPs to be used for devfreq devices and related
         changes to devfreq governor (Saravana Kannan).
      
       - Significant code changes to allow a new OPP helper,
         dev_pm_opp_set_opp() (Viresh Kumar).
      
       - Remove dev_pm_opp_set_bw() and update related drivers (Viresh
         Kumar).
      
       - Allow lazy linking of required-OPPs (Viresh Kumar)."
      
      * 'opp/linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm: (37 commits)
        PM / devfreq: Add required OPPs support to passive governor
        PM / devfreq: Cache OPP table reference in devfreq
        OPP: Add function to look up required OPP's for a given OPP
        opp: Replace ENOTSUPP with EOPNOTSUPP
        opp: Fix "foo * bar" should be "foo *bar"
        opp: Don't ignore clk_get() errors other than -ENOENT
        opp: Update bandwidth requirements based on scaling up/down
        opp: Allow lazy-linking of required-opps
        opp: Remove dev_pm_opp_set_bw()
        devfreq: tegra30: Migrate to dev_pm_opp_set_opp()
        drm: msm: Migrate to dev_pm_opp_set_opp()
        cpufreq: qcom: Migrate to dev_pm_opp_set_opp()
        opp: Implement dev_pm_opp_set_opp()
        opp: Update parameters of  _set_opp_custom()
        opp: Allow _generic_set_opp_clk_only() to work for non-freq devices
        opp: Allow _generic_set_opp_regulator() to work for non-freq devices
        opp: Allow _set_opp() to work for non-freq devices
        opp: Split _set_opp() out of dev_pm_opp_set_rate()
        opp: Keep track of currently programmed OPP
        opp: No need to check clk for errors
        ...
      992b9ff1
  3. 04 Feb, 2021 3 commits
  4. 02 Feb, 2021 34 commits