msm: kgsl: Do not return invalid power stats when the device is off

adreno_power_stats() was returning unitialized data when the device
state was not active. Leave early from the function if the device
is not active and return 0s instead.

Change-Id: Ic0dedbadf6201cadb4472327c4ce7f9d9d32b82d
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Prabhat Awasthi <pawasthi@codeaurora.org>
msm: mdss: add tracing events in mdss driver

Add tracing points in key points in driver.

Change-Id: Ie31e27be4890e2e7cd573c00dbf3f66fa9c62060
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
Signed-off-by: Vineet Bajaj <vbajaj@codeaurora.org>
msm: mdss add bw related events for command mode panels

Add events to observe when bandwidth is requested,
when bandwidth is needed and when bandwidth is released
for command mode panels.

Change-Id: I56b8ce28683696bee50e9cd10351076c49e4a84c
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
Signed-off-by: Vineet Bajaj <vbajaj@codeaurora.org>
msm: mdss: add systrace begin/end trace events

Adding trace points for systrace at various points in
the driver.

Change-Id: I4783fd2982bddb7f111de9e064bcaff153eb1ce1
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
Signed-off-by: Vineet Bajaj <vbajaj@codeaurora.org>
Merge "msm: mdss: add tracing events in mdss driver"
Merge "msm: mdss add bw related events for command mode panels"
Merge "msm: mdss: add systrace begin/end trace events"
leds: leds-qpnp: check if flash_wa regulator is obtained before enabling it

Enable flash_wa regulator in qpnp_flash_regulatori_operate function only if
it is obtained in the first place.

Change-Id: Ibddda5327a792edecfe61fca451dbd0bfff2bda2
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
msm: mdss: Issue ctl sw reset when underrun happens

If underrun occurs in dual pipe mode (edp, or HDMI) then
there is a chance the 3d_mux will get confused and route
right to left and left to right. This will happen if it
is on the right side when the underrun condition happens.
To fix this following steps are required:

 - Disable HW recovery
 - When underrun is detected, wait for vsync.
 - Issue sw_reset to the ctl path.

This is required to cleanly reset the 3d_mux in case the
swap has occurred.

Change-Id: I8fbf747da4720c12d48bc1ee431bab6224148e31
Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
Merge "msm: kgsl: Do not return invalid power stats when the device is off"
leds: leds-qpnp: check if flash_wa regulator is obtained before enabling

The flash led requires the use of an optional regulator, "flash_wa_reg".
This regulator is enabled without checking if the regulator is obtained
or not. Hence, a check is made before enabling/disabing the regulator to
ensure that the "flash_wa_reg" is obtained first.

Change-Id: I8fda00274ad3bc21d9ed32d0f3f2ca09e1079f87
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
Merge "qseecom: change the number of bytes to compare app names"
Merge "msm: mdss: Issue ctl sw reset when underrun happens"
mdss: dsi: Fix null dereferences

Fix potential null dereferences in driver.

Change-Id: Idd8d4eb16bb1b9562da1f5225d91cf90d8230bfe
Signed-off-by: Charles Bin <cbin@codeaurora.org>
ARM: dts: msm: Add flash_wa regulator support for msm8974 flash

Add the DT property flash-wa-supply to flash device node and assign
pm8941_chg_chgr regulator to it. This enables the flash_wa regulator
support for the msm8974 flash driver.

Change-Id: I41a49d4ffb8d7b1190ab755c9dd16ddaa0d6232b
Signed-off-by: Chunmei Cai <ccai@codeaurora.org>
Merge "leds: leds-qpnp: check if flash_wa regulator is obtained before enabling it"
Merge "leds: leds-qpnp: check if flash_wa regulator is obtained before enabling"
Merge "ARM: dts: msm: Add flash_wa regulator support for msm8974 flash"
Merge "mdss: dsi: Fix null dereferences"
Merge commit 'a617224715088ce4fc8b686b256937ad5d293571' into 1

Conflicts:
	drivers/leds/leds-qpnp.c

Change-Id: I593112725d2074a813ce59bef7330d1feab0e6c2
Signed-off-by: Abhinav Gurram <c_abhina@codeaurora.org>