]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00236837 MX6SL-Fix random crash caused by incorrect setting of IPG clk rate.
authorRanjani Vaidyanathan <ra5478@freescale.com>
Tue, 11 Dec 2012 23:50:33 +0000 (17:50 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:48 +0000 (08:35 +0200)
Need to ensure that bus frequency setpoint is changed only if
the system is not already at the requested setpoint.
Changing the bus freq to high setpoint when its already at
high setpoint causes the AHB/IPG dividers to be set incorrectly.
Then when the system enters WAIT mode, the 12:5 ratio of
ARM_CLK:IPG_CLK is no longer maintained.
This causes random crashes.
Fix is to return immediately if the bus is already at the
requested setpoint

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
arch/arm/mach-mx6/bus_freq.c

index 6422052ed0b304055f6a1b51c3c94934ba5bd8d5..1f429f9e06564ce1629065c9d20637f9865c1f64 100644 (file)
@@ -300,6 +300,8 @@ int set_high_bus_freq(int high_bus_freq)
        if (!bus_freq_scaling_initialized || !bus_freq_scaling_is_active)
                return 0;
 
+       if (cpu_is_mx6sl())
+               high_bus_freq = 1;
 
        if (high_bus_freq_mode && high_bus_freq)
                return 0;