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>
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""
Merge "msm: camera: Fix improper ion free in error case"
Merge "Merge "msm: camera: Fix improper ion free in error case""
msm: mdss: fix for black stripe flicker in browse scroll

Fix a typo that was comparing the width instead of the height
parameter that lead to black stripe flickering when scrolling on
browser.

Change-Id: I10e57f876458f46d445b3404d09a5e7606aeb666
Signed-off-by: Vinu Deokaran <vinud@codeaurora.org>
Merge "msm: mdss: fix for black stripe flicker in browse scroll"
ARCH: arm: dts: update pon s3 debounce

Increase the S3 debounce time to 128 to provide
longer time for S3 reset.

Change-Id: Id020b816c36dc543fc1e4dcbda4ea9e36572af5e
CRs-fixed: 730833
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
Merge "ARCH: arm: dts: update pon s3 debounce"
platform: msm: fix s3 source macros

PON stage 3 source macros are wrongly ordered. Fix the
S3 source macros with proper values.

Change-Id: If68d7405d9db107a4d2aceb152589da2e34fc73b
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
ARM: dts: msm: add s3 source for msm8226

Add stage 3 reset trigger for msm8226.

Change-Id: If3281da27c2d3003a226ea8d668636c566944ec1
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
Merge "platform: msm: fix s3 source macros" into LNX.LF.3.5.1_RB1.2