msm: HTC 8960: add stubs for CAF HDMI on/off

Change-Id: Ic2be1baaf7313c2a48c7b2b85821846d4dda2185

Conflicts:
	arch/arm/mach-msm/board-elite.c
	arch/arm/mach-msm/board-ville.c
msm: vidc: Allow client to request sps/pps per IDR frame

Expose SET_SPS_PPS_FOR_IDR to allow client request sps/pper per IDR
frame.

Change-Id: I0316d751bd1e0b412972cba9d4d59b142500a51d
Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
wcnss: remove HTC subsystem restart

Change-Id: I7a4181c5a90544a962a1557aafc40911b1447e21
wcnss: Pre-alloc memory for WLAN driver

WLAN driver will use this pre-allocated memory (when available) for
large memory allocations; this will prevent WLAN driver load
failures because of the un-availability of the large size slabs
during module load.

Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
(cherry picked from commit 24db5288a9f82ced747746a2064a60f368ea6646)

Conflicts:

	drivers/net/wireless/Kconfig
	drivers/net/wireless/wcnss/wcnss_wlan.c
	include/linux/wcnss_wlan.h

Change-Id: I79da592689014a16e25382176e5edf8ea4e91d6c
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
(cherry picked from commit 60b943e1d425e76d250cb07563021140a21b9d93)
wcnss: fix enable wcnss bite IRQ warning

Bite IRQ is disabled when it's handler is called; and it is re-enabled
in SSR power-up. So if SSR was triggered by SMSM bit, then trying to
re-enable bite IRQ throws a warning. So move disable bite IRQ to SSR
shutdown routine.

CRs-Fixed: 346144
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
(cherry picked from commit 27d3f533fa45ab9b86cc684cd1e3f407090072c8)

Change-Id: Ie9b41ba35c8977b37f243acad4e3fe0afb9c6698
Signed-off-by: Ramakrishna Prasad N <crpn@codeaurora.org>

Conflicts:
	arch/arm/mach-msm/wcnss-ssr-8960.c

Conflicts:
	arch/arm/mach-msm/wcnss-ssr-8960.c
wcnss: add subsystem failure reason for wcnss

Print a message to kernel log indicating the reason
for failure of wcnss subsystem. The failure reason
is provided by wcnss subsystem, when available.

Signed-off-by: Sunny Kapdi <sunnyk@codeaurora.org>
(cherry picked from commit c6e4288ef693d26c9e26342ba6439aee075c1f58)

Signed-off-by: Shruthi Krishna <skrish@codeaurora.org>
(cherry picked from commit 3001b8ff25bcdfc023568af0b6601ca021e7c347)

Conflicts:

	arch/arm/mach-msm/wcnss-ssr-8960.c

Change-Id: I32c7c04b8067f9caf240e253ff2a1712b5b59239
Signed-off-by: Sridhar Gujje <sgujje@codeaurora.org>
wcnss: invoke subsystem restart from interrupt context

when subsystem restart is invoked from a workqueue context, there is
a small window of failure where in the APPS can go to suspend before
invoking subsystem restart.  So invoke subystem restart from the
interrupt context itself.

CRs-Fixed: 371744
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
(cherry picked from commit 50d6290a009ba1adadd6fb9d584af612a35aba13)

Conflicts:

	arch/arm/mach-msm/wcnss-ssr-8960.c

Change-Id: If0f99c48a7af8ec58ec781f880d797c9d70c2b63
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>

Conflicts:
	arch/arm/mach-msm/wcnss-ssr-8960.c
wcnss: cancel any pending APPS votes from coldboot before SSR

APPS vote from coldboot may be still pending when SSR is invoked;
so make sure that the APPS votes from coldboot are cancelled before
SSR votes for these Riva regulators.

CRs-fixed: 380434
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
(cherry picked from commit 13f45182fcd1756df8526e1be19c1cf4717dec09)

Change-Id: I4b06d8445c9036078c1962280047990621dcdbbb
Signed-off-by: Ramakrishna Prasad N <crpn@codeaurora.org>

Conflicts:
	include/linux/wcnss_wlan.h

Conflicts:
	arch/arm/mach-msm/wcnss-ssr-8960.c
	include/linux/wcnss_wlan.h

Conflicts:
	arch/arm/mach-msm/wcnss-ssr-8960.c
wcnss: wake lock APIs for host drivers

wcnss related host drivers can use these APIs to prevent Apps suspend.
WLAN driver uses this API to prevent suspend, when it's module
initialization routines are being executed.

Change-Id: Id072804e6ccc953c78caf6cf11c73e0ea1d71d18
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
wcnss: fix incomplete ramdump for wcnss

SSR3 ramdump API only specifies 3MB wcnss RAM segments. Increase
this to 5MB to specify the complete wcnss RAM segments.

CRs-fixed: 377178
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
(cherry picked from commit 84bc89aa4e4ff5508b0b774c74d39f2b4b658bb8)

Change-Id: I9c2139400c6dcec7cfc240ec7822bf30aac4789c
Signed-off-by: Ramakrishna Prasad N <crpn@codeaurora.org>
msm_fb: Clear real pipe attributes in the pipe free

Clear original pipe attributes in the pipe free call.

Change-Id: I776869e7997e5b70e4c2b102e1a394034247bbcd
Signed-off-by: Kalyan Thota <kalyant@codeaurora.org>
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>

Conflicts:
	drivers/video/msm/mdp4_overlay.c
msm_fb: display: empty pending queue during suspend

Overlay_play() adds a pipe into pending queue and pan_display()
will commit those pipes to hardware and empty queue. This patch
will make sure queue is empty at suspend so that no unexpected
pipes will be commited to hardware by pan_display() at resume.
Otherwise, iommu page fault may happen.

Change-Id: Ib35c247550bb8754f9bff68a6352022d58c55ff8
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>

Conflicts:
	drivers/video/msm/mdp4_overlay_dsi_video.c
	drivers/video/msm/mdp4_overlay_dtv.c
	drivers/video/msm/mdp4_overlay_lcdc.c

Conflicts:
	drivers/video/msm/mdp4_overlay_dsi_cmd.c
	drivers/video/msm/mdp4_overlay_dtv.c