yas529: Fix deadlock when disabling immediately after enabling

Google Navigation does this and deadlocks the entire sensor system

Change-Id: I421c947758e0681c0cfb9ea8809ea00397f4800a
Update makefile flags for kernel
FIMC changes from Crespo * Change the number of FIMC CTXs to 1 for stability purposes.

Signed-off-by: Max Fierke <max@maxfierke.com>
Upgrade BCM4329 driver from Crespo

Signed-off-by: Max Fierke <max@maxfierke.com>
Use Crespo's BCM4329_PURE_ANDROID stuff.

Signed-off-by: Max Fierke <max@maxfierke.com>
[PATCH] Fix memory leak in cpufreq_stats.c

When a CPU is taken offline in an SMP system, cpufreq_remove_dev()
nulls out the per-cpu policy before cpufreq_stats_free_table() can
make use of it.  cpufreq_stats_free_table() then skips the
call to sysfs_remove_group(), leaving about 100 bytes of sysfs-related
memory unclaimed each time a CPU-removal occurs. Break up
cpu_stats_free_table into sysfs and table portions, and
call the sysfs portion early.

Change-Id: I4d2eab13a68ead5943fe89dae6f71862b4fb3dd9
PM: Wait for completion of the parent resume before resuming

If the parent device is in the DPM_RESUMING state, resume might get called
before the parent's resume has completed, because dpm_wait won't get
called. This issue was introduced by:
3d46a3c PM: Prevent waiting forever on asynchronous resume after abort

Wait for completion of the parent resume if the parent state is >= DPM_OFF
or == DPM_RESUMING

Change-Id: I14a4e16426f61efceaefedc7e772f53b7522b5dd
Signed-off-by: Benoit Goby <benoit@android.com>
net: wireless: bcm4329: Prohibit FW access in case of FW crash

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
net: wireless: bcm4329: Skip dhd_bus_stop() if bus is already down

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
rtc alarm: fix bad index when canceling alarms[]

(backport from common android-3.0
commit: 692e468137ebb2a31431c4b3fad1dca0a2da7659)

It was using ANDROID_ALARM_ELAPSED_REALTIME_WAKEUP_MASK as an
index.

Change-Id: I919860cc71254453e382616bce9fd5455802cb3d
Signed-off-by: JP Abgrall <jpa@google.com>
net: wireless: change the expire time about each entry of scan results

Change-Id: I6e8d838d91bebc28f4cd09dcb8b9f1de775be13d
Signed-off-by: jun.ho.lee <jun.ho.lee@samsung.com>
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Fix 'struct uart_port' defined in declaration warning.
Adding <linux/serial_core.h> opens a big can of worms of missing
includes, so instead define a weak structure.

Change-Id: I55314d129f2e2736299b6e0e47cc0682ce69c30a
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
Signed-off-by: Max Fierke <max@maxfierke.com>
Forgot to log stderr too.
Now the same information that gets written to console gets logged to build.log and modules.log

Change-Id: Idc57180b658a9d0b0c27a7223272ef5cb14563f8
Append the log output of make modules to build.log

Change-Id: I725a81d323e570c2088ebe493bc6804b23453793
Reported-by: Bryan Hundven <bryanhundven@gmail.com>
Signed-off-by: Max Fierke <max@maxfierke.com>
Remove KERNEL_DEBUG_SEC stuff

Change-Id: Ia84a3954f4909494dc5837ebc646297bc15dabe1
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
Signed-off-by: Max Fierke <max@maxfierke.com>
Remove samsung level driver.

Signed-off-by: Max Fierke <max@maxfierke.com>
Fix a large, annoying compiler warning caused by Samsung's incompetence.

Change-Id: I56a94046737855b88fba4b909f3ede69364b5cb2
Signed-off-by: Max Fierke <max@maxfierke.com>
Backport CE147 driver from Linux 3.0

* Autofocus is now handled in userspace to prevent deadlocks.

Signed-off-by: Max Fierke <max@maxfierke.com>
Write reboot reasoning to S5P_INFORM6. Clean up the Samsung crap.

Signed-off-by: Max Fierke <max@maxfierke.com>
Add a mutex lock to the CE147. All the cool cameras have one.

Signed-off-by: Max Fierke <max@maxfierke.com>