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"
import 18.3.A.0.31, 18.3.B.0.31, and 18.3.C.0.37

Change-Id: I9fe65abe2340748058b8f72ab325bc113d634ddf

Conflicts:
	Documentation/devicetree/bindings/arm/msm/cpr-regulator.txt
	arch/arm/boot/dts/msm-pm8226.dtsi
	arch/arm/boot/dts/msm8226-v2.dtsi
	arch/arm/boot/dts/msm8926.dtsi
	drivers/gpu/msm/adreno.h
	drivers/gpu/msm/adreno_a3xx.c
	drivers/gpu/msm/adreno_dispatch.c
	drivers/gpu/msm/adreno_drawctxt.c
	drivers/gpu/msm/kgsl_mmu.c
	drivers/hwmon/qpnp-adc-voltage.c
	drivers/media/platform/msm/camera_v2/isp/msm_isp40.c
	drivers/misc/qseecom.c
	drivers/mmc/card/block.c
	drivers/power/qpnp-bms.c
	drivers/power/qpnp-charger.c
	drivers/spi/spi_qsd.c
	drivers/tty/serial/msm_serial_hs.c
	drivers/video/msm/mdss/mdss_dsi.c
	drivers/video/msm/mdss/mdss_dsi_panel.c
	drivers/video/msm/mdss/mdss_fb.c
	net/ipv4/ping.c
Revert "msm: mdss: add systrace begin/end trace events"

This reverts commit 7bda3c42ca71b7ba53ea355665c96e5898a0aed8.

Conflicts:
	drivers/video/msm/mdss/mdss_mdp_ctl.c

Change-Id: If0779f06f6d44c79fe17b4be2cd095d29e7cc121
Revert "msm: mdss add bw related events for command mode panels"

This reverts commit a5773ca5ef65963025a48703deb3bef55fb5b94b.
Revert "msm: mdss: add tracing events in mdss driver"

This reverts commit 9463011008b75efceca45bded9be9ff4af84cd86.

Change-Id: Ic324824708772a38a01535893d0f987a34990724
Remove SONY_RIC

Change-Id: Ifd73e8a2c3457227958d2052a041de3471b4ee9c