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>
wcnss: add null check in pm_ops unregister

Add null check for pm_ops in pm_ops unregister to avoid
null pointer dereference.

Change-Id: I885618a3244b91ba5eddcadb81ae08e965db63b3
CRs-Fixed: 690191
Signed-off-by: Mahesh A Saptasagar <msapta@codeaurora.org>
Merge "wcnss: add null check in pm_ops unregister"
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"
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 ec8ceb10a807d171ad67e543aeb9fc9b00bb2887 on remote branch

Change-Id: Ie0d30dac8bb060fc9d1c3f42a8f21c23b2671a4f
Merge "Merge ec8ceb10a807d171ad67e543aeb9fc9b00bb2887 on remote branch"
Merge "input: atmel_mxt_ts: Synchronous PM request starting Secure Touch"
Merge e2502dc9cbd633ef5ea4f69379f537b58fd6e952 on remote branch

Change-Id: Ia8be8f49b76cd95085bcef60344d1ce628b93e04
Merge "Merge e2502dc9cbd633ef5ea4f69379f537b58fd6e952 on remote branch"
Merge "mmc: core: Fix unclocked access in get_xfer_remain/stop_request"
Merge 82868232e9c156ca88ad0c3e74448ed28dc42f4a on remote branch

Change-Id: Ia24ed6d0828ae80500851636dba2738b82998aa8
Merge "Merge 82868232e9c156ca88ad0c3e74448ed28dc42f4a on remote branch"