wcnss: Notify Kernel suspend/resume to WCNSS

Notify WCNSS when the Kernel is suspended and also when it resumes.
Certain notifications from WCNSS are not required when Apps is
suspended.

Change-Id: I4e237d4793803798c599d4659bb2d7c0e496a393
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
(cherry picked from commit ed3f7dadb5e798e49da59a1d1cb4a3be5143f9a0)

Conflicts:

	drivers/net/wireless/wcnss/wcnss_wlan.c

Signed-off-by: Dhivya Subramanian <dthiru@codeaurora.org>

Conflicts:
	drivers/net/wireless/wcnss/wcnss_wlan.c
wcnss: Remove enabling of CXO in suspend/resume

CXO was explicitly turned ON before writing into PMU registers, this
is not required now. WLAN driver will only send suspend/resume
notifications to WCNSS when it's is BMPS mode. And in this mode, Apps
can always access PMU register.

Change-Id: I6a2e59b541ecea16be9e9463f26add6b23d4bdb0
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
(cherry picked from commit f4cc9e59cd05af649f75d5c07f43ae7ed92b0172)

Signed-off-by: Dhivya Subramanian <dthiru@codeaurora.org>
msm_fb: display: add wfd clk ctrl in pipe_commit

mdp_clk_ctrl on is not called when commit is from overlay commit path
which can cause mdp hang. mdp_clk_ctrl off should be after mdp
overlay2 is done, so schedule a work in overlay2 done isr.

(cherry picked from commit 1fdd101b95c275118f6a0c9c732d5559f815b1bb)

Change-Id: I9b13b3307e3b8e9a9873985affe27d0caf1df2be
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
msm: mdm: Fix error value for SHUTDOWN_CHARM ioctl

SHUTDOWN_CHARM should write the error value to the parameter
passed, but in this case as no error value is updated.

(cherry picked from commit d1ed37b3fff7e67c933868f6dd263624c8d91e22)

Change-Id: I360d7cf385ef003a3963504f7135eb999a10f042
CRs-Fixed: 424291
Signed-off-by: Taniya Das <tdas@codeaurora.org>

Conflicts:
	arch/arm/mach-msm/mdm_common.c
msm_fb: hdmi: HDMI suspend resume event handling

This change makes sure that we do the proper HDMI ON settings at resume
and also send the events to user-space about current status of HPD after
resume.

(cherry picked from commit ade75d570fa8f2bea13b32590c08a9993cbb9cf1)

Change-Id: Id9aef7c84c3a0565e8d16f06ecd0643721ca46b8
CRs-Fixed: 422372
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>

Conflicts:
	drivers/video/msm/hdmi_msm.c
msm_fb: display: enable timing generator at resume

At both lcdc and dsi video mode interface, timing generator
need to be enabled at system resume time so that vsync event
can be conveyed to frame work with accurate vsync time.

(cherry picked from commit c2128bcc7d7aa186963bd62042520c318513b161)

Change-Id: Ibbd3353caf070a00fbd261767b8f5c910551364e
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
power: pm8921-bms: change r_sense unit from mOhm to uOhm

Change the unit of r_sense from Milli Ohms to Micro Ohms in order to
increase the precision of ccadc and current readings.

Change-Id: Ic3f2c4e5bafd3a1556412005564fc0b549e6813c
Signed-off-by: Xiaozhe Shi <xiaozhes@codeaurora.org>

Conflicts:
	include/linux/mfd/pm8xxx/pm8921-bms.h