msm: pcie: Specify PARF parameters in platform data.

In femto development platform (FDP) the PCIe lanes are much shorter
compared to APQ8064 CDP with PCIe adaptor. This board requires different
PARF SWING parameters.

Change-Id: I32b56997c4efab40b7f6d9ac75c0e695d6948664
Acked-by: Chemin Hsieh <cheminh@qti.qualcomm.com>
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
msm: camera: Fix for the bus overflow issue

Support only 2 streams from the VFE, which need only 4 VFE WM.
We divide the UB buffer(1024 * 128 bits) equally into 4 VFE WM and
stats WM.

Correct the offset of burst length in VFE register while writing to HW.
Burst length corresponds to the number of data bytes written at a time.

Change-Id: I82d1b88f499f4572bd58ca29c7cc1a74615554a7
Signed-off-by: Nagesh Subba Reddy <nageshsreddy@codeaurora.org>
ASoC: msm: qdsp6v2: Add SSR support for Voice2

When Modem SSR happens, change the voice2 call state to
VOC_ERROR. Then MVM, CVP and CVS handles will be cleaned up
properly when ending the call or starting a new call.

Change-Id: If5e2cd0a35231a832336c7611e25358b3c2a3d97
Signed-off-by: Helen Zeng <xiaoyunz@codeaurora.org>
msm_serial_hs: Add support to get UART port reference using port index

Add support to get reference of UART port using its port index.
i.e. if you want reference of UART port for enumerated device as
/dev/ttyHS10, then use the exported API with argument as 10.

Change-Id: I45fc0f2e0d44b21653fd4c875fa3b2f5735fdf84
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
ASoC: msm: Add size safety check to ACDB driver

Check that the size sent by userspace is not larger
then the internal amount allowed. This protects
against overflowing the stack due to an invalid size.

Change-Id: I4a5b5ca5212bea32b671027d68a66367c5d4c4e7
CRs-fixed: 470222
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
ASoC: msm: Change lpa driver to use HW instead of runtime params

Use HW params to allocate buffer size instead of runtime params.

Change-Id: Id7c531938e2f77241a6c1779b82d387e09ab03f2
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
msm: kgsl: Always send fence sync the timestamp it expects

Fence sync seems to react badly when it gets a unexpected timestamp
on a timeline.  When a event expires always send the expected timestamp
even if the event expired because the context was destroyed.

Change-Id: Ic0dedbad770363a00257d62c4940f7743bc33060
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
arm/dt: msm8226: Add kmalloc (system contiguous) heap

There are some clients on msm8226 that need to use the kmalloc
heap. Enable it in the device tree.

Change-Id: I95e7f139b3a2c3b03b1df176fbcf065d75b77b9b
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
arm/dt: msm8610: Add kmalloc (system contiguous) heap

There are some clients on msm8610 that need to use the kmalloc
heap. Enable it in the device tree.

Change-Id: I10cb8f02dbf8042a54563d4ca8d7f96123a7dd5f
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
msm: simplify placing memory pools

The algorithm for placing memory pools was manually inspecting
the memblock data structures and then doing a memblock_remove()
on the region it decided that the memory pool should be located at.

If other code already did a memblock_remove() it was possible
that the memblock data structures which this algorithm
was inspecting would not be correct and the memory pool might
be placed overlapping this previous allocation.

Instead use arm_memblock_steal() which will not have this
problem (and also lets the memblock subsystem do
the allocation without any manual inspection of memblocks).

Change-Id: I7db5cba0a8d5f222f9f2f131b4b42eb81171c45b
Signed-off-by: Larry Bassel <lbassel@codeaurora.org>
msm: mdss: reset control path configuration during panel off

Because of the dynamic way that control paths can be configured, a
different control path can be used for different panel interfaces.
In order to avoid same panel and/or same mixer being configured for same
control path, ensure the control path configuration is completely
cleared once it's no longer active.

Change-Id: I090cfd0b325100363de3d3fcc49c364b93619093
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
defconfig: msm8226/msm8610: Enable SDHCI driver support

This change enables config options that enable the
Standard Host Controller Interface driver support.

Change-Id: I290be457501b2bbdb4236a5d333b25973a963733
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
arm/dt: msm8610: Add SDHC device nodes

Add device tree entries for SDHC1 and SDHC2 devices.

Change-Id: Icc55e7ff73270c4cf0e5c0445136c248898628a6
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
arm/dt: msm8610: Switch to SDHC by default

Disable the SDCC devices and enable the SDHC devices to switch to SDHCI
driver by default.

Change-Id: I748746d74d5792aa963a3b0896700a7d68b98964
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
board-8610: Add AUX data for SDHC devices

This is required for Android boot scripts that expect the msm_sdcc.x
sysfs entries.

Change-Id: Icbbf652d5b58c49b548f79c3428c0d96cb22b4cd
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
arm/dt: msm-pm8226: lower rconn to 0

The connector resistance is currently set to 18 milliohms. This is
incorrect. The hardware has been updated to do IR compensation on the
vbat_sns line, and the connector resistance is effectively zero.

Fix this in the device tree by setting the connector resistance to 0.

Change-Id: Iddd860cd675be708bcc6bbd3d8fc3dbb8e3c7c4f
Signed-off-by: Xiaozhe Shi <xiaozhes@codeaurora.org>
ASoC: msm: Add TTY support for VoLTE

Add VoLTE session name to TTY routing controls to support
TTY in VoLTE call

Change-Id: I7d885fb4dccff9ececb75aa273c2de950d7c414e
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
arm/dt: msm8610: Change memory hole location and size

Change the location and size of the memory hole to comply with
msm8610 memory map.

Change-Id: I194471e5bc6c1a17268433490c9e7c94f235e0a1
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
mm: change initial readahead window size calculation

Change the logic which determines the initial readahead window size
such that for small requests (one page) the initial window size
will be x4 the size of the original request, regardless of the
VM_MAX_READAHEAD value. This prevents a rapid ramp-up
that could be caused due to increasing VM_MAX_READAHEAD.

Change-Id: I93d59c515d7e6c6d62348790980ff7bd4f434997
Signed-off-by: Lee Susman <lsusman@codeaurora.org>
power: qpnp-bms: update correction algorithm

Correct only when the soc estimate is lower than 15. This way we won't
affect linearity and accuracy for most part. The corrections will
come in only when the soc est gets low.

Also repurpose the device tree adjust soc low threshold property so that
it determines the point the estimated SoC needs to be at to start
adjusting. Remove the high threshold since it is unused.

Change-Id: I47f909aa75d96d4f7735e0d17521e4a6b37df914
Signed-off-by: Xiaozhe Shi <xiaozhes@codeaurora.org>