]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00221440 MX6x-Fix race-condition in checking bus_freq variables
authorRanjani Vaidyanathan <ra5478@freescale.com>
Sat, 25 Aug 2012 05:14:51 +0000 (00:14 -0500)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:19 +0000 (08:35 +0200)
commit1647054941205e223037b727e9ba06e9da27df2d
treea47a8fdbc7854d652a80259efad2076fe690175f
parentf1a1c6ae27eee02db55a7764fd92f1ab68a522c7
ENGR00221440 MX6x-Fix race-condition in checking bus_freq variables

Checking of the bus_freq variables and changing of the
bus/ddr frequency should be done under one mutex.
Else there is a race-condition that the variable changed
just after it was checked.
Also ensure that the bus freq is always increased before
the cpu freq is set to anything other than the lowest setpoint.
Else there is a possibility that the ARM is set to run from
PLL1 at higher frequency when bus/DDR are still at 24MHz.
This is dangerous since when system enters WAIT mode in
low bus freq state, PLL1 is set to bypass when ARM is being
sourced from it.

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