]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: imx6q: Set max suspend_freq to avoid changes during suspend
authorLeonard Crestez <leonard.crestez@nxp.com>
Tue, 4 Apr 2017 17:04:12 +0000 (20:04 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 19 Apr 2017 21:22:01 +0000 (23:22 +0200)
commit6ec849118c2399705eb7c9f8e3b8061604d3261a
treef22f034b46d8657aea8dafae29b4734f9b09f831
parentd99f0b9d3773153fb38fa490480d07d22d6f696e
cpufreq: imx6q: Set max suspend_freq to avoid changes during suspend

If the cpufreq driver tries to modify voltage/freq during suspend/resume
it might need to control an external PMIC via I2C or SPI but those
devices might be already suspended. This issue is likely to happen
whenever the LDOs have their vin-supply set.

To avoid this scenario we just increase cpufreq to the maximum before
suspend.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/imx6q-cpufreq.c