keyboard: cypress: Don't renew notification timeout option

The usual behaviour of BLN implementations is that notification
timeouts are renewed with each new notification event. I am not
sure if this is desired.

This patch allows the user to disable notification renewal by
echo'ing a boolean value as third parameter into notification_timeout.
The default will be standard behaviour though (renew/1).
vr: fifo_batch set to 1

we have a nand flash device, so we tune it for speed!
and hoping that also fixes random slowdowns
mc1n2: replace mdelay() with msleep() to be consistent with GB kernels

Also don't call msleep() if the value is 0 (GB gates this with
isVoiceSearch)

Change-Id: I281d7f3d7cf90264993becacbe6802bf1add1f0b
Signed-off-by: Andrew Dodd <atd7@cornell.edu>
net: wireless: bcmdhd: Fix division by 0 if dhd_watchdog_ms is 0

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
sched_rt: fix SCHED_RR across cgroups

task_tick_rt has an optimization to only reschedule SCHED_RR tasks
if they were the only element on their rq.  However, with cgroups
a SCHED_RR task could be the only element on its per-cgroup rq but
still be competing with other SCHED_RR tasks in its parent's
cgroup.  In this case, the SCHED_RR task in the child cgroup would
never yield at the end of its timeslice.  If the child cgroup
rt_runtime_us was the same as the parent cgroup rt_runtime_us,
the task in the parent cgroup would starve completely.

Modify task_tick_rt to check that the task is the only task on its
rq, and that the each of the scheduling entities of its ancestors
is also the only entity on its rq.

Ported from the Android 3.4 kernel.

Change-Id: I4f5b118517f85db3570923eb2f5e4c933ece9247
Signed-off-by: Colin Cross <ccross@android.com>
Linux 3.0.32

Changelog:
http://www.kernel.org/pub/linux/kernel/v3.0/ChangeLog-3.0.32
keyboard: cypress: Automatically enable BLN while charging

Write a boolean value into enabled_charging to auto enable
BLN while charging. A new sysfs file was nessecary because
there were too many dependencies on the enabled file in the
control app.
ld9040: increase boot gamma level to original GAMMA_160CD level
cypress: touchkey refactorings, cleanup and guards against voltage&led status modifications when in deep sleep which cause slowness bug
mach-u1: Forward-port MACH_Q1 changes from a Gingerbread kernel
for mic bias and a few GPIO configs

Might be part of the speakerphone equation...

Change-Id: I0237fdc33f70a7c6a9c33cdf2a9cc1d80dad3697
Signed-off-by: Andrew Dodd <atd7@cornell.edu>
mach-u1: Rework ramconsole init

The original memory init code was causing the kernel to hang.

Instead, use garyd9's approach from:
https://github.com/garyd9/linux_kernel_GT-P6210/commit/d796ac86dcff1eeda19d7638315dcf6fe3978318

The approach needed some rework to deal with our compiler being stricter than his.

Change-Id: I8b80582ef40531b7df26d26dbd10d3a4952f1f5f
Signed-off-by: Andrew Dodd <atd7@cornell.edu>

Conflicts:

	arch/arm/mach-exynos/mach-u1.c
Revert "mach-u1: Rework ramconsole init"

This reverts commit 2d6746828e128999a2def2344d88bca4fa5677f6.
sec_battery: make bln battery management only for aosp roms
aosp: updated initramfs from latest cm9 nightly
max8997: Implement Accessory Charger Adapter support.

Accessory Charger Adapter is a device which allows one to power both
the OTG A- and B-devices. It identifies itself via a particular
pull-down value on the ID pin.

Accessory Charger Adapter is defined in Battery Charging Specification,
section 6.2 (as of rev 1.2).

Change-Id: I64c390d5c8300229df474d5fcf9d50aeb14bb6bc

Conflicts:

	Makefile
fixing cherry-pick issues
[MMC] Patch the firmware of certain Samsung emmc parts to fix a bug

Patch the firmware in certain Samsung emmc chips after every power-on
to workaround a bug in the wear leveling code.  Patch provided by Samsung
Semiconductor, and the code to apply the patch was originally written
by Jeonghwan Min of Samsung.

Signed-off-by: Ken Sumrall <ksumrall@android.com>
mach-exynos: tmu: add tmu sysfs for temperature reading (from update5 sources)
modem_if: update modem driver to update5 sources
usb: gadget: composite: Fix corruption when changing configuration

Remove the config from the configs list before releasing the spinlock.
Otherwise the other cpu might be processing a SET_CONFIGURATION that
will switch to the configuration that is being released.

Bug: 6521576
Change-Id: Id4da0d0e18ead63e20cb236cd1d3e8e6d116acce
Signed-off-by: Benoit Goby <benoit@android.com>