msm: ASoC: Implement local call hold

Add support for local call hold in voice driver. In multi
subscription scenario, when a call is recieved on one subscription
while a call is already active on another subscription, then active
call will be put on local call hold.

Change-Id: Ie409797e2dd4faf1f53251a3b150a56b2bee9f42
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
ehci: hsic: add suspend/resume handshake with ipa resource manager

This change ensure correct sequence with the ipa resource manager
to obtain or release the producer and consumer resources upon
hsic host suspend/resume sequences which involve entering/exiting
to low power mode.

Change-Id: Iec77b9a24a3192a19de93c813b416baca26c7a77
Signed-off-by: Ido Shayevitz <idos@codeaurora.org>
arm/dt: msm9625: consider ipa handshake with hsic host

Hsic host in 9625 is depend on ipa handshake for managing low power mode.
For example upon remote wake up, make sure the ipa producer resource is
granted first.

Change-Id: I78a0b492343418419ab8246f02f1629431ed5b0a
Signed-off-by: Ido Shayevitz <idos@codeaurora.org>
msm: clock-8084: Add clock support for ocmem

Add dummy clock support for ocmem on simulator.

Change-Id: I984a119a9fc105ed3b0e2b861e0de514e1d8330a
Signed-off-by: Neeti Desai <neetid@codeaurora.org>
block: Remove "requeuing urgent req" error messages

It is possible for URGENT request to be requeued/reinserted if it was
fetched during the creation of a packed list. This end case is rare and is
not handled at the moment.
This patch changes the messages notifying of the above to debug level
(instead of error) in order to clear the dmesg log.

Change-Id: Ie8bc067e61559a6f702077b95c5dbcc426404232
Signed-off-by: Tatyana Brokhman <tlinder@codeaurora.org>
qpnp: pwm: Amend the GPLED LPG channel boundary check

There should be an "AND" condition instead of "OR" to check
for GPLED LPG channel boundary check. Amend the bug.

Change-Id: I8430a5b5fa0b9b20dc1ec23e42ab39f45866addd
Signed-off-by: Jay Chokshi <jchokshi@codeaurora.org>
msm: clock-8610: Change MMSSNOC AXI FSM clock dependency

Make the MMSSNOC AXI clock source depend on the FSM clock
to allow the FSM clock to be enabled whenever any downstream
AXI clock is enabled.

Also, the MMSSNOC AXI clock was left on until late init to
allow drivers to probe without the bus driver. Now that the
bus driver is in place remove the hack.

Change-Id: Iff19f2f639fecab072f39bd5a6e68e42ca3fe303
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
msm: clock-8610: Delete unused pnoc_qseecom_clk

The pnoc_qseecom_clk isn't used by the qseecom driver.
Remove it from the lookup table and delete the voter
clock.

Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
msm: kgsl: Add support for coresight

Adding support for Coresight debug bus to work with the GPU,
including registering graphics core with Coresight and a coresight
interface to GPU through sysfs.

Change-Id: I9508659ca7d7d67e8a8becba41d06be76360c570
Signed-off-by: Harsh Vardhan Dwivedi <hdwivedi@codeaurora.org>
diag: Fix writing of error message for mode command

Currently, when a mode command that is not the mode reset command
is sent, a kernel error message is written. This is wrongfully written.
Make changes so that when a mode command is sent that is not the
mode reset command, an error message is not wrongfully written.

Change-Id: I07666d5cda3c63804cc1dffc7cf1672915c02c1f
Signed-off-by: Dixon Peterson <dixonp@codeaurora.org>
msm: ipc_logging: Replace spinlock_t with rwlock_t

Currently with the spinlock, all drivers are serialized(SMD_PKT,
BAM_DMUX etc.) when they try to log into the IPC logging even though the
drivers log into their own context space. The read/write lock will
enable multiple drivers to log into their context space in parallel.
This will help more in the case of drivers which are
performance-critical like BAM_DMUX.

ipc_log_context_list is read often and updated rarely so replace the
usage of spinlock_t with rwlock_t.

Change-Id: I91f18ef67b80edf6f045f93f51ad2f48e46b3bb4
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
mdss: mhl: Fix MHL peer status register handling.

Fix handling of MHL peer device status registers for MHL
Compliance case 3.1.1.13.

Change-Id: I404f44d635ad9d3571d5b54bd9c161846c775838
Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org>
Signed-off-by: Mukesh Jha <cmjha@codeaurora.org>
arm/dt: apq8074: Add device tree for apq8074 v1

Add device tree file for apq8074 v1 with information of
memory reserved for other images not accessible by the
kernel and the size and address of the qseecom node.

Change-Id: Iab3f2615f206f8a5dde35fb2efc9c8479f26e82b
Signed-off-by: Neeti Desai <neetid@codeaurora.org>
msm: clock-8092: Add dummy clock support for mpq8092

Dummy clock support for MPQ8092 until the real clock support is
available.

Change-Id: Ib580159d43ffca26d7483a89ee5d140b5c38eda6
Signed-off-by: Taniya Das <tdas@codeaurora.org>
defconfig: Enable Bluetooth HID for Bluedroid

This patch enables Bluetooth HID for Bluedroid
on 8x26.

Change-Id: I31cac0ecca4c296b26159ca215f79886e91653e1
Signed-off-by: Nitin Shivpure <nshivpur@codeaurora.org>
msm: spm-regulator: Switch to PWM mode before increasing voltage

Change the voltage setting function so that if the PMIC regulator
starts out in AUTO mode, it is switched to PWM mode before
increasing the voltage set point of the regulator.  This ensures
that the output voltage steps up to the new set point as quickly
as possible.  If the regulator began in AUTO mode, then change
the mode back to AUTO after the final voltage has been reached so
that power consumption is minimized.

Read the voltage stepping control register during probe so that
an accurate step rate can be calculated.

It has been found that voltage transitions take a very long time
to complete if the regulator is configured for AUTO mode.  This
can result in crashes due to temporarily undervolting the APSS
cores.

Change-Id: If2d54bbff6a2d4789b8eb727c767053303976778
Signed-off-by: David Collins <collinsd@codeaurora.org>
msm: camera: Fix memory leak in camera close op

Delete and free residual entry of command ack while closing camera.

Change-Id: Ica0f8934f3faa2079570730723df0d74e10784e8
Signed-off-by: Azam Sadiq Pasha Kapatrala Syed <akapatra@codeaurora.org>
msm: 8084: fix boot dependencies

Add SMD's dependency, msm_init_modem_notifier_list(), to the early init
sequence, apq8084_add_drivers().

Change-Id: Iadb48c36df865c6c61c64d1267df9908ae2c48db
Signed-off-by: Jeffrey Hugo <jhugo@codeaurora.org>
arm/dt: apq8084: add ipc-spinlock entry

Add the ipc-spinlock entry to facilitate locking between apps and non-apps
processors.

Change-Id: I3ed55742c39ec8e63a6684e94dcf524915f04d49
Signed-off-by: Jeffrey Hugo <jhugo@codeaurora.org>
arm/dt: apq8084: add smem entry

Add the shared memory entry to facilitate interprocessor communication.

Change-Id: Iab6bfed5085a5097d354c57dbe966c77195dcccd
Signed-off-by: Jeffrey Hugo <jhugo@codeaurora.org>