msm: kgsl: Change b/w vote for new power level

Change the bus scale table of the new power level
to use low vector instead of init vector. This
change is only needed on mainline as the new power
level is defined only for mainline.

Based off Change-Id: I2857d9deb6eac1168ad73f3922c790a9a46eeba1
i-proj: kgsl: make kgsl msm_bus votes more readable

Based off Change-Id Ia8de770d0891a078d9b2dc16b8ce541a4820b003
touch_synaptics: Simplified release events

ICS just needs an empty sync to release, no need to generate dummies
for the rest of the tools.
Also, get completely rid of BTN_TOUCH.
msm: msm_bus: Optimize clock calls and abstract RPM functionality

Clock calls are grouped per request to reduce the number of requests
sent to the RPM for setting clock rates. Clocks are disabled when rate
is set to 0 and enabled when rate goes from 0 to non-zero value.
RPM functionality is abstracted in a different file for structuring the
code in facilitating above optimization.

Change-Id: I737e7095cd61771e8a7331cab08689ef097e6764
Signed-off-by: Gagan Mac <gmac@codeaurora.org>

Signed-off-by: Raj Kushwaha <rajk@codeaurora.org>
msm: dma: remove crci conflict checking

The crci conflict checking code was designed for a system where a crci's
mux could be changed at runtime. In reality, our chips configure these
statically, so it is not necessary.

Change-Id: I3e71859f6cdbc5274577f482a16498f9dea90773
Signed-off-by: Jeff Ohlstein <johlstei@codeaurora.org>
mmc: core: Prevent too long response times for suspend

While trying to suspend the mmc host there could still be
ongoing requests that we need to wait for. At the same time
a device driver must respond to a suspend request rather quickly.

Instead of potentially wait "forever" by claiming the host we now
"try" to claim the host instead. If it fails, -EBUSY is returned.

Signed-off-by: Ulf Hansson <ulf.hansson@stericsson.com>
Reviewed-by: Sujit Reddy Thumma <sthumma@codeaurora.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>

CRs-Fixed: 325090

[sthumma@codeaurora.org: Squash commit 49df7807]
[sthumma@codeaurora.org: Skip the implementation for SDIO cards]
Signed-off-by: Sujit Reddy Thumma <sthumma@codeaurora.org>
(cherry picked from commit ec6202f968414300c27be0a2dfb38ceb8356ea04)

Change-Id: Ib9cc2a24733e02d952adfad257b162e6ea299476
Signed-off-by: Swetha Basineni <sbasin@codeaurora.org>
mmc: msm_sdcc: Hold sdio wake_lock till end of lpm sequence.

The sdiowakeup irq handler turns on the clock and takes sdio
wake_lock, but the wake_lock is set to expire on any msmsdcc_request
even before sdio_al has had a chance to finish the lpm disable
sequence. This causes power drain if the system enters suspend, hence
hold the sdio wake_lock till sdio_al is finished lpm disable sequence.
This change is only applicable to sdio_al clients.

Change-Id: I10c00059c3d071b90a81cb8f7664eedf4e772d8a
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
mmc: msm_sdcc: reduce runtime pm idle timer to 5 sec

Currently SDCC runtime pm idle timer is set to 10 sec
which can be reduced to 5 sec to improve power number.

Change-Id: I0a06d1dbdb474692671956bc84fc979e05c14ff8
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
msm: acpuclock-8x60: Update CPU voltages for 1.5GHz frequency tables

Update the voltages with the proposed S/W setting based on HW
characterization data to reduce power consumption.

Change-Id: Ib6ccdbc8a66e749223b20164ddd6490525870d57
Signed-off-by: Tianyi Gou <tgou@codeaurora.org>
i-proj: remove always ON vote for eMMC VCC rail

eMMC card can be put in sleep by sending CMD5 during suspend
so we can turn off the eMMC VCC rail to save power.

Based off Change-Id: I6e1641370e15365941ae6e6c518848e33791cdbb
i-proj: Disable dual-function on power-key

We don't want the power key to do ENDCALL on press and POWER on
long-press. Disable the timeout to get POWER all the time
i-proj: Remove carrierIQ hooks
staging: android: lowmemorykiller: Fix check for other_free pages

lowmem_shrink function checks for both file memory pages and other free
pages.

CRs-Fixed: 292543
Signed-off-by: Taniya Das <tdas@codeaurora.org>
(cherry picked from commit 1c5b7af694f4bf0c64ed5586b284c52a1c54ce3f)

Change-Id: Id767a0e2995a552fc16ba21e36650d6db1fd94e1
Signed-off-by: swetha <sbasin@codeaurora.org>
i-proj: Updates to the charger code

... and other minor fixes
msm: audio: qdsp6v2: Fix memory leak in aac encoder

Memory leak observed during stability testing as
codec_cfg structure is not being release.

Fix this issue by releasing the codec_cfg structure
in the release function

CRs-Fixed: 317736
Signed-off-by: Harmandeep Singh <hsingh@codeaurora.org>
(cherry picked from commit d7d785c798a5010787abc01c0ee7f8f28e0c00df)

Change-Id: Id36ee045cb6ef72d48eeb848644573f2fb06f6d0
Signed-off-by: Swetha Basineni <sbasin@codeaurora.org>
Updated cm defconfig