ARM: dts: honami: enable clearpad pen input

Change-Id: I324d45d66f6d211b321a568186f95ad9af09908a
amami : add cm_rhine_amami_row_defconfig

Change-Id: I1ad3830a056a5f40aa423ef194dbe70f59296b21
ion: system_heap: only use low gfp flags for order-0 pages

By trying a little harder to get high-order pages (by virtue of the
liberal gfp flags used for high-order allocations) we can actually
optimize performance since high-order pages seem to help a lot. Only use
the low-order flags as a last resort, when trying to allocate an order-0
page.

Change-Id: If8d8f4b1b4503b0c7546cf5a4bcdcaecd2bb5905
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
msm: lpm_levels: remove rpm handshake in l2_gdhs mode

Remove rpm handshake in l2_gdhs mode and adjust the
latency values for l2_gdhs mode. Add a new dt entry to
inform lpm_levels driver to send sleep votes to rpm.

CRs-fixed: 604873
Change-Id: I9eeae5fada4f84ee2ca2eb9d67707dee1adf56ac
Signed-off-by: Anil kumar mamidala <amami@codeaurora.org>

Conflicts:
	arch/arm/boot/dts/msm8226-v1-pm.dtsi
msm: lpm_levels: return new idle level to cpuidle framework

Need to return the new idle level to cpuidle framework
but just returned input value argument 'index' which is
not used actually at lpm_cpu_power_select().

CRs-fixed: 601636
Change-Id: Iabd182eeb4fbdc67f4e07b40a1b593471cf8cbdf
Signed-off-by: Anil kumar mamidala <amami@codeaurora.org>
PM / devfreq: Fix out of bounds access of transition table array

The previous_freq value for a device could be an invalid frequency that
results in a error value being returned from devfreq_get_freq_level().
Check for an error value before using that to index into the transition
table.

Not doing this check will result in memory corruption when previous_freq is
not a valid frequency.

Signed-off-by: Saravana Kannan <skannan@codeaurora.org>
Change-Id: Ia9f9f3dabf14b26c4dff54fb2bac3e77f33458c0
msm: pm: print active clocks before entering into pc

print out all active clocks during idle power collapse
and suspend power collapse using clock debug API

CRs-fixed: 596828
Change-Id: Ie653c02d490b80de001f61fe8320ee851bb139c7
Signed-off-by: Anil kumar mamidala <amami@codeaurora.org>
msm: pm: bug in pc debug counters logic

The logic to find the location to add debug counter
for a CPU is incorrect and due to this the counter
of next CPU is corrupted. The logic is updated to
correct this.

CRs-fixed: 596773
Change-Id: I6de21bd480720d80ad9801d8a1331b6faf689b95
Signed-off-by: Anil kumar mamidala <amami@codeaurora.org>
msm: mdss: synchronize wfd driver iommu mmap/munmap with mdss

Add clocks reference during wfd driver iommu mdp_mmap/mdp_munmap
to ensure iommu is in proper state while wfd driver map/un-map
any buffers.

Change-Id: Id1a24285b81d5047e5e9f002ade9694ea49be59d
Signed-off-by: Pawan Kumar <pavaku@codeaurora.org>
msm: mdss: add bus bandwidth request enable/disable during get/free buffer

Enable bus bandwidth request during get/free buffer to ensure
iommu is in proper state while mapping/un-mapping any buffers.

Change-Id: I85cc74a666dbfd29abd26609cbdd3e968d1ecd01
Signed-off-by: Pawan Kumar <pavaku@codeaurora.org>
msm: mdss: Decimation and BWC cannot be enabled together

Hardware cannot support decimation and bwc together.
The use case should be failed.

Change-Id: Ic7547340eb08d542a296aa9cfdd150e7eb0bea4b
Signed-off-by: Sree Sesha Aravind Vadrevu <svadrevu@quicinc.com>
msm: mdss: optimize MDP pipes cleanup

There are cases where pipe cleanup can happen without display commit.
This means that the pipe was never programmed to hardware, in these
cases the pipe can be cleaned up without the need of display commit
cycle to happen. Also there is no need to access hardware to release
resources such as SMPs since they have not been programmed yet.

Change-Id: I57a46471dc1fba4e45e55c3543940ba4fba0540a
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org>
ARM: dts: msm: lower LDO 11 minimum voltage constraint for msm8974

Change the minimum voltage constraint of PM8941 LDO 11 from 1.3 V
to 1.225 V.  This allows the RPM to reduce the voltage of LDO 11
when no consumers on the application processor require it to be
at the maximum level of 1.3 V.  This is particularly important
when a consumer on another processor needs LDO 11 to be enabled
but no consumer on the application processor requires the same.

Make the same change for PMA8084 LDO 11 on msm8974pro boards.

Change-Id: I9cf71cf7d9360c045af1ac51a3994e3f6d672191
CRs-Fixed: 614000
Signed-off-by: David Collins <collinsd@codeaurora.org>
Revert "msm: clock-8974: Reduce PLL lock time"

This reverts commit 4506a7feeaf02d272c518783cdac680bbd8aa312.
msm: sony: Enable KSM

Change-Id: I3419c3ee345362a25bb816bdaed72e276239464c
Revert "ARM: dts: honami: enable clearpad pen input"

This reverts commit db1fdb9c8df392af05f7845a540c6f917e0ab3ca.

Change-Id: Ib059e7c4ea7a54f296acb8600dd8c20b8f5732c9
Revert some commits, fixes SoD

Squashed commit of the following:

commit 9f83131f929cd93898e7e7cff7fbdf979afc38fe
Author: Chirayu Desai <cdesai@cyanogenmod.org>
Date:   Fri Mar 28 18:58:31 2014 +0530

    Revert "msm: lpm_levels: remove rpm handshake in l2_gdhs mode"

    This reverts commit a6ff01955314fa5ae1d981d72e455615bf9816e4.

commit b1826cd8caeca9b461b4079b6acd927f0feefac6
Author: Chirayu Desai <cdesai@cyanogenmod.org>
Date:   Fri Mar 28 18:58:23 2014 +0530

    Revert "msm: lpm_levels: return new idle level to cpuidle framework"

    This reverts commit 88f99042a87fe8018b93f01f6131ebc561e3433a.

commit 0c7a955ba8b5fb331afb4e387b6708484b5b2efc
Author: Chirayu Desai <cdesai@cyanogenmod.org>
Date:   Fri Mar 28 18:58:22 2014 +0530

    Revert "PM / devfreq: Fix out of bounds access of transition table array"

    This reverts commit e1b4fdb52f22029069cc9250390b72002d79ad01.

commit 023d0b0a0df1c41d15d724e46c40b4e4b971278e
Author: Chirayu Desai <cdesai@cyanogenmod.org>
Date:   Fri Mar 28 18:58:21 2014 +0530

    Revert "msm: pm: print active clocks before entering into pc"

    This reverts commit 88c4dd377bb8fa5c23692c4be7ce1f7b9a5435ba.

commit 0e3b411d52c6b61b48f8c4492e18c76269b35d6f
Author: Chirayu Desai <cdesai@cyanogenmod.org>
Date:   Fri Mar 28 18:58:21 2014 +0530

    Revert "msm: pm: bug in pc debug counters logic"

    This reverts commit a8b23dc6b17f4fe19edefa21a8bb0d5746a7bae4.

commit ab0c013b170fee72a4b9033cbabbcf0cc5799468
Author: Chirayu Desai <cdesai@cyanogenmod.org>
Date:   Fri Mar 28 18:58:20 2014 +0530

    Revert "msm: mdss: synchronize wfd driver iommu mmap/munmap with mdss"

    This reverts commit b85103d728716b79c8fa5711018d5256edbccdc1.

commit f78117619f6d52dd66809ac26d6847bb975dde02
Author: Chirayu Desai <cdesai@cyanogenmod.org>
Date:   Fri Mar 28 18:58:19 2014 +0530

    Revert "msm: mdss: add bus bandwidth request enable/disable during get/free buffer"

    This reverts commit b8e1e712c7b7655fc488bd8060f3c89e93be3a0a.

commit c23616d4c05b535126edd60e4bf14a1ee9ba12d7
Author: Chirayu Desai <cdesai@cyanogenmod.org>
Date:   Fri Mar 28 18:58:18 2014 +0530

    Revert "msm: mdss: Decimation and BWC cannot be enabled together"

    This reverts commit 23ad317ca9b83b3d5e62c3090eb4481d4aa2506c.

commit a8e62143d4e613f704dffc4549450a4c9bb20c92
Author: Chirayu Desai <cdesai@cyanogenmod.org>
Date:   Fri Mar 28 18:58:17 2014 +0530

    Revert "msm: mdss: optimize MDP pipes cleanup"

    This reverts commit 4b9548f91c75dd0067c40d73dbef213457bfec11.

commit 6f8a2f4432e80805915b06362481f8f04df74c33
Author: Chirayu Desai <cdesai@cyanogenmod.org>
Date:   Fri Mar 28 18:58:12 2014 +0530

    Revert "ARM: dts: msm: lower LDO 11 minimum voltage constraint for msm8974"

    This reverts commit 46c89de8d6c6654f8aec3badca8b1fd7acfd0ffa.

Change-Id: Ica57d71c9fb858bafb47cb4894aa3e3f813a4ebc