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""
Merge 95940f5af2925ad208fa3c94a402fddb575d92d4 on remote branch

Change-Id: I74cb53400bf05a80643b77236161608bacffbd12
Merge "Merge 95940f5af2925ad208fa3c94a402fddb575d92d4 on remote branch"