Skip to contentSkip to conversation

PM / devfreq: tegra: Set freq in rate callback

PATCH MyungJoo Ham 1 participant 1 message Jan 21, 2016 Tegra architecture support

lore
Share & tools
lore
#0 lore raw
Quoted 9 lines

As per the documentation of the devfreq_dev_profile.target callback, set the freq argument to the new frequency before returning.

This caused endless messages like this after recent changes in the core:

devfreq 6000c800.actmon: Couldn't update frequency transition information.

Signed-off-by Tomeu Vizoso
Reported-by Tyler Baker

Ah.. this is critical and material for LTS queue.

Quoted 20 lines

---
drivers/devfreq/tegra-devfreq.c | 2 ++

1 file changed, 2 insertions(+)
drivers/devfreq/tegra-devfreq.c +2 -0
index 848b93ee930f..fe9dce0245bf 100644
@@ -500,6 +500,8 @@ static int tegra_devfreq_target(struct device *dev, unsigned long *freq,
 clk_set_min_rate(tegra->emc_clock, rate);
 clk_set_rate(tegra->emc_clock, 0);
 
+ *freq = rate;
+
 return 0;
 }
 
Signature · 1 line
2.5.0