ARM: tegra: fix max freq selection l4t/l4t-r21.2 tegra-l4t-r21-21.2
Bibek Basu [Thu, 27 Nov 2014 04:40:36 +0000 (09:40 +0530)]
Remove check for required mV less than max mV
because required mV for pllX is different from
dfll

Bug 200059817

Change-Id: Idb34e60479922bdc2913166447d47c5553eafb71
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/656475
Reviewed-by: Eric Brower <ebrower@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

arch/arm/mach-tegra/dvfs.c

index 4293851..06596c5 100644 (file)
@@ -1146,8 +1146,7 @@ int __init tegra_enable_dvfs_on_clk(struct clk *c, struct dvfs *d)
        }
 
        for (i = 0; i < MAX_DVFS_FREQS; i++) {
-               if (d->millivolts[i] == 0 ||
-                               d->millivolts[i] > d->max_millivolts)
+               if (d->millivolts[i] == 0)
                        break;
 
                d->freqs[i] *= d->freqs_mult;