input: atmel_mxt_ts: Synchronous PM request starting Secure Touch

Maintain I2C adapter clocks on when starting Secure Touch
using the synchronous version of pm_runtime_get.

Change-Id: Ie30ea56af9e045239099652124740565428518f8
Acked-by: Christian Bolis <cbolis@qti.qualcomm.com>
Signed-off-by: Keith Fallows <keithf@codeaurora.org>
qseecom: Check if ce clock is enabled before sending cmd to TZ

Make change to check if ce clock is enabled before sending command
to TZ, then to prevent data aborting if clock is not enabled for
TZ crypto operation.

CRs-Fixed: 726840
Change-Id: I55b5b10ad80e741c39f8cf411f67e6b83887f3bb
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
Signed-off-by: William Clark <wclark@codeaurora.org>
qseecom: Enable/disable clock for client if bus scaling is not enabled

To avoid the service failure on a target where bus scaling flag is not
enabled in target device tree file by mistake, make a change to enable/
disable crypto clocks when the client calls to scale up bus bandwidth
and send command even if bus scaling feature is not enabled.

CRs-Fixed: 726840
Change-Id: Ib33a535051b68561bde5ab6a23ad0f02dc27ab13
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
Merge "qseecom: Check if ce clock is enabled before sending cmd to TZ"
Merge "qseecom: Enable/disable clock for client if bus scaling is not enabled"
Merge "Merge "qseecom: Enable/disable clock for client if bus scaling is not enabled""
mmc: core: Fix unclocked access in get_xfer_remain/stop_request

The unclocked access could happen in the following scenario -

1. mmcqd thread is waiting for previously submitted io to be done
2. before this io is done, it is woken up due to is_urgent event
3. mmcqd thread is running and is processing the is_urgent event
4. Just about the same time the previously submitted io is done and
it sets is_done_rcv flag, tries to wake up mmcqd thread and release
host clock so as to gate the clocks.

If step 3 and 4 happen at the same time, then clocks will be gated off
before is_urgent is completely handled. Hence, make sure to hold the
clock before invoking get_xfer_remain and stop_request host->op.

Change-Id: If03177bf5e28cc217cc8e86b10d81d4adbab78b9
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
Merge "input: atmel_mxt_ts: Synchronous PM request starting Secure Touch"
Merge "Merge "input: atmel_mxt_ts: Synchronous PM request starting Secure Touch""
Merge a03e15ec62c2d35189bf8ea98d89689a30e8be67 on remote branch

Change-Id: Ie7b0095cd6d173585641032f61b220d43a8f3dc0
Merge "Merge a03e15ec62c2d35189bf8ea98d89689a30e8be67 on remote branch"
Merge "mmc: core: Fix unclocked access in get_xfer_remain/stop_request"
Merge "Merge "mmc: core: Fix unclocked access in get_xfer_remain/stop_request""
Merge afecdc67ec2a362412a1aecbe7c545181841f38d on remote branch

Change-Id: I72ac65d9ab0612702129d29a27890f7e55d10f72
Merge "Merge afecdc67ec2a362412a1aecbe7c545181841f38d on remote branch"
ASoC: msm: Add bounds checking to ADM get params

Add additional bounds checking to ADM get params.
Validate that all buffer sizes are valid before
dereferencing.

Change-Id: If7c7a5ae6a56812e9c4a11a38c9bdc78f42d09f3
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
Merge "ASoC: msm: Add bounds checking to ADM get params"
Merge "Merge "ASoC: msm: Add bounds checking to ADM get params""
Merge 60eb29231dbd1b614ec4066131b18339f04c7a4b on remote branch

Change-Id: I44f8a0de4ffe5555648578ad4cc848b0d6d6412a
Merge "Merge 60eb29231dbd1b614ec4066131b18339f04c7a4b on remote branch"