From: Ranjani Vaidyanathan Date: Tue, 11 Dec 2012 23:50:33 +0000 (-0600) Subject: ENGR00236837 MX6SL-Fix random crash caused by incorrect setting of IPG clk rate. X-Git-Tag: v3.0.35-fsl~193 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7d1a87d39a9d2fa3e5752840e42f4f8ad27712ba;p=karo-tx-linux.git ENGR00236837 MX6SL-Fix random crash caused by incorrect setting of IPG clk rate. 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 --- diff --git a/arch/arm/mach-mx6/bus_freq.c b/arch/arm/mach-mx6/bus_freq.c index 6422052ed0b3..1f429f9e0656 100644 --- a/arch/arm/mach-mx6/bus_freq.c +++ b/arch/arm/mach-mx6/bus_freq.c @@ -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;