qseecom: fix secure app loading failure by kernel mode qseecom client

Make a change to fix secure app loading failure due to premature
kzfree() from __qseecom_load_fw(), when kernel mode qseecom client
tries to load app.

CRs-fixed: 694541

Change-Id: I1ac39ee885c12e08e863d976321dda2380ace852
Signed-off-by: William Clark <wclark@codeaurora.org>
leds: leds-qpnp: add workaround for controlling GPLED output

There is a hardware limitation in the case of PM8941 where
enabling any of the GPLEDx requires enabling of GPLED1. Hence,
lpg channel 9 corresponding to GPLED1 should be enabled before
enabling any other lpg channels corresponding to other GPLEDs.

CRs-Fixed: 723698
Change-Id: If7fe6f26ed3d617e823e0a615ee2d6185d68c5bb
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
leds: leds-qpnp: make blink functionality synchronous

pwm_cfg->blinking is a shared parameter between qpnp_mpp_set
and led_blink function. When a blink operation is given to
the led when it is glowing with some brightness value, the led
does not blink because the blinking parameter is wrongly
reset to false in the end of qpnp_mpp_set. So making the blink
functionality synchronous will solve the issue.

Change-Id: Ie84fe52bc84d5c14573e3f1a042e163e62152cce
CRs-Fixed: 723698
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
leds: leds-qpnp: add blink functionality support for GPLEDs

Existing implementation does not support blink feature for
GPLEDs. Blink functionality is required if user wants to
produce fading effects using GPLEDs. Hence, adding blink
functionality to GPLEDs.

CRs-Fixed: 723698
Change-Id: I87886469b05cf75986e89ebc3f28d9a6a386401f
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
ARM: dts: msm: add blink support for GPLED

Existing implementation does not support blink functionality for
GPLED. Add a DT parameter qcom,use-blink to add blink sysfs entry
for switching into lpg mode when GPLED is to be used for blinking.

CRs-Fixed: 723698
Change-Id: I1d502eba30d87f3f7e6439d6a4d4e4d286d84528
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
Revert "Revert "msm: mdss: Allow smp change during composition switch""

This reverts commit eac463a3d6f66ac13eaf0c7e0a50da80e0610368

Change-Id: I46108ed7dd62c3b600833df084ce79e1fc54d06d
Merge "Revert "Revert "msm: mdss: Allow smp change during composition switch"""
Merge "leds: leds-qpnp: make blink functionality synchronous"
Merge "leds: leds-qpnp: add blink functionality support for GPLEDs"
Merge "ARM: dts: msm: add blink support for GPLED"
Merge "leds: leds-qpnp: add workaround for controlling GPLED output"
Merge "Merge "ARM: dts: msm: add blink support for GPLED""
msm: camera: Fix improper ion free in error case

In case of ion import failure, error value is being passed as an
handle to ion_free which causes invalid address access. This patch
fixes improper api calls in error case.
Change-Id: Ibc85f12d92d876ffb18afe4d330a6c59f2b8bfcc
Signed-off-by: Aditya Jonnalagadda <ajonnala@codeaurora.org>
Merge "Merge "leds: leds-qpnp: add workaround for controlling GPLED output""
Update to AU_LINUX_ANDROID_LNX.LA.3.5.1_RB1.04.04.04.048.088

Change-Id: Iac265d88f9403a2b11c0c8a13863d6e146ba95f1
Signed-off-by: B2G User <b2guser@localhost>
Merge "Update to AU_LINUX_ANDROID_LNX.LA.3.5.1_RB1.04.04.04.048.088"
Merge "qseecom: fix secure app loading failure by kernel mode qseecom client"
qseecom: Just check current bus scaling mode in qseecom_suspend

In current qseecom_suspend function, qseecom will scale down bus
bandwidth if both of accumultive mode and current mode are not
INACTIVE. But if device goes into suspend before bus scaling timeout
happens, the accumulative mode may be zero but current mode is
still not INACTIVE. This may prevent the device going to suspend,
thus, make a change to just check current bus scaling mode in
qseecom_suspend.

CRs-Fixed: 740287
Change-Id: I60e90000aa9efe428b144fb766e19e81312af66f
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
Merge "qseecom: Just check current bus scaling mode in qseecom_suspend"
Merge "msm: camera: Fix improper ion free in error case"