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>
mmc: sdhci-msm: fix issue with tuning command

As of now we ignore CRC/INDEX command failures to tuning command
and still wait for data from card but in case the card did not
receive the command, it won't send the data. This is causing
software request timeout for tuning commands. Hence, software
must not ignore such cmd errors for tuning commands but end the
request immediately after resetting the controller for both CMD
and DATA. Also, wait for 146 MCLK cycles for card to send out the
data and thus to move to transfer state. Its corresponding phase must
also be considered as bad phase.

CRs-fixed: 625855
Change-Id: Ic8462dd9c67e4f18a3ce73d972591772be8c6d10
Signed-off-by: Sahitya Tummala <stummala@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"
Revert "msm: mdss: protect command mode BW votes by tracking HW/SW states."

This reverts commit 03f77edd9125b25821cc1ce3b5cf6323e6466dd8.

Change-Id: I3cdc75c46d053d040d72b42d74bb58e91604e365
Signed-off-by: Anusha Koduru <kanusha@codeaurora.org>
Revert "msm: mdss: release mdp bandwidth voting for command mode when idle"

This reverts commit 964efc22d11732daf996dd07d7c930c523200143.

Change-Id: I7c0825ef58ab1ace60a0ba958eb20fe6567f2ccf
Signed-off-by: Anusha Koduru <kanusha@codeaurora.org>
Revert "ARM: dts: Increase the ib fudge factor to 2"

This reverts commit 9c444be54c29b01e7d15decee6b3bb50a7596435.

Change-Id: I527dd245ec9d0b485da1f9a4f9b5afa9f9d4621d
Signed-off-by: Anusha Koduru <kanusha@codeaurora.org>
Revert "ARM: dts: set ab fudge factor to 1"

This reverts commit 6e3919ad99595640a059628ca96b2802907a8565.

Change-Id: I8c6710731deabd76439f2dfa70c68df059869864
Signed-off-by: Anusha Koduru <kanusha@codeaurora.org>
Revert "msm: mdss: fix issue of overlapping BW for two adjacent surfaces"

This reverts commit d8bef95ffe4ac52b029a81ab3066c2c18b7fe82d.

Change-Id: I04b8295c32f50da33d0a981246d8307a706221c3
Signed-off-by: Anusha Koduru <kanusha@codeaurora.org>
Merge "mmc: sdhci-msm: fix issue with tuning command"
Merge "Revert "msm: mdss: protect command mode BW votes by tracking HW/SW states.""
Merge "Revert "msm: mdss: release mdp bandwidth voting for command mode when idle""
Merge "Revert "ARM: dts: Increase the ib fudge factor to 2""
Merge "Revert "ARM: dts: set ab fudge factor to 1""
Merge "Revert "msm: mdss: fix issue of overlapping BW for two adjacent surfaces""
msm: mdss: fix potential deadlock with ulps work thread

Do not check if the clocks are on when sending the ULPS event from
the worker thread. This check is not needed since the work is only
scheduled after the clocks are turned off and would be cancelled
anyway when the clocks are turned on if it is pending. Removing this
unnecessary check avoids acquiring a shared lock which can potentially
lead to a deadlock situation.

Change-Id: Ib9760221f044dded50a38a32b59d0158c2f6b50e
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
Signed-off-by: Abhinav Gurram <c_abhina@codeaurora.org>
Signed-off-by: Vinu Deokaran <vinud@codeaurora.org>
Merge d9be2e931c60966f99248b4b11a9014a91a14c26 on remote branch

Change-Id: Iefb2f9880d7941ea2de04ffe9a9b15cbd9c7e5a7
Merge "Merge d9be2e931c60966f99248b4b11a9014a91a14c26 on remote branch"
Merge "msm: mdss: fix potential deadlock with ulps work thread"