ARM: tegra12: dvfs: Replace crossover error with warning
Alex Frid [Sun, 7 Jul 2013 00:39:09 +0000 (17:39 -0700)]
Replaced error generated if PLL and DFLL V/F curves do not have
crossover point, with warning. Still use DFLL above Vmin in this
case.

Change-Id: I7c97c6aea70266a36ae88796a8f7225bed6122c1
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/245876
Reviewed-by: Mitch Luban <mluban@nvidia.com>

arch/arm/mach-tegra/tegra12_dvfs.c

index 19a31ac..90850a4 100644 (file)
@@ -671,10 +671,12 @@ static int __init set_cpu_dvfs_data(
                return -ENOENT;
        }
 
-       /* Must have crossover between dfll and pll operating ranges */
+       /* In the dfll operating range dfll voltage at any rate should be
+          better (below) than pll voltage */
        if (!fmin_use_dfll || (fmin_use_dfll > fmax_at_vmin)) {
-               pr_err("tegra12_dvfs: no crossover of dfll and pll voltages\n");
-               return -EINVAL;
+               WARN(1, "tegra12_dvfs: pll voltage is below dfll in the dfll"
+                       " operating range\n");
+               fmin_use_dfll = fmax_at_vmin;
        }
 
        /* dvfs tables are successfully populated - fill in the rest */