msm: htc_wifi_nvs: expose wifi calibration data to kernel

Change-Id: Ib21b2a25ee81e312fdccb9a0501e0709353f3541
staging: prima: clean up ifdefs in hdd_update_config_from nv

Change-Id: I08c63529f2c0a4409f988115dd2b0a2191998ea2
staging: prima: add option to read calibration data from HTC NVS

Change-Id: Ic10b4891eee4071d6edf7aa7bea2b7994f914b2b
msm8960: HTC: read wifi calibration from HTC NVS

Change-Id: Id744d04f9e91622cf4b972efce80f764bceb5131
staging: prima: less debugging

Change-Id: Id603648b49d56d623ecec69bd00bc7772660cb54
Linux: update to Linux 3.0.44

squash of the following commits:

Linux: 3.0.9

Change-Id: I3cf37c31f7c061b3801b1bd910537d380bfb4b18

Linux: 3.0.10

Change-Id: I1565145dac44902a629d4589829b5e913e09bff5

Linux: 3.0.11

Change-Id: If84dba89d2288075f8cd8413185d28904dbf7062

Linux: 3.0.12

Change-Id: I6a4661e5741c669989237f2f52a23fe0d290cbf8

Linux: 3.0.13

Change-Id: I939f5691e75997cb64077f390d7ad3c13ea67000

Linux: 3.0.14

Change-Id: Iac40f264b6630ed6582721a2f8beb37ef3d7829d

Linux: 3.0.15

Change-Id: I4d3ae46603499dc8138b7ac55aa5c7c1243ce416

Linux: 3.0.16

Change-Id: I11e1ecd779fdab26603e9761d356e66ade057eba

Linux: 3.0.17

Change-Id: Ib22390e97e669c2839da93645b1b5b6c5027c807

Linux: 3.0.18

Change-Id: I1dd88da632fbbb4d370a9205ec50052cdd50025b

Linux: 3.0.19

Change-Id: I0969d63d0f54eb161d8f8bc2ed12626a93432751

Linux: 3.0.20

Change-Id: Ia95970d53da33cd988392f8e14d3951aee084e66

Linux: 3.0.21

Change-Id: Ieccb846c957781e8f84da885638d6830a4703a0d

Linux: 3.0.22

Change-Id: I549f79cfa33384912a6860ff9e48b0256d9fdaba

Linux: 3.0.23

Change-Id: I61db04c05b5e9051bc831c214d6d56ff6d3fe59f

Linux: 3.0.24

Change-Id: Ie7eb58a34af9073fc1028d8c2b237751963622f1

Linux: 3.0.25

Change-Id: I2456e5b5c3c7a753425adcc79dfdafc6fdfab0dc

Linux: 3.0.26

Change-Id: I52d4aa194af7724efd2854310dcbe67c0b63df9e

Linux: 3.0.27

Change-Id: Ia01e7bcabe625e4947f85cc57c91093063bdb77b

Linux: 3.0.28

Change-Id: I391f525c5b60d17cebe0b5c6ae164550670e98b3

Linux: 3.0.29

Change-Id: Ieb5e4f3d08713a5b0422f3760a9af8039e019c27

Linux: 3.0.30

Change-Id: Iebeeb69c70eee1a4b699de55e073edf0f731a22f

Linux: 3.0.31

Change-Id: I732a15bb45e8f40a9377915f101393ff00524edb

Linux: 3.0.32

Change-Id: I7b3a8cc889280c5fdc1b24034c10bd5c6b6529a7

Linux: 3.0.33

Change-Id: I33a10c7082933787a92ea6b078595b395d29e341

Linux: 3.0.34

Change-Id: I4bb342e9fbf27395c74dc3d21465cb81ff86932d

Linux: 3.0.35

Change-Id: Iddc41903fd0693a23755ebe1ff88acc903b23b72

Linux: 3.0.36

Change-Id: I0f212b00abd1866e97b8e58423693085e5460c37

Linux: 3.0.37

Change-Id: Ic3bf44ccd79cecbe91022c6733bd9f50c9ba83a7

Linux: 3.0.38

Change-Id: I6d18dcd7745265c8b295996fcc15d86b2a3260b8

Linux: 3.0.39

Change-Id: I949ddb92ce168033aee92ed9a0b420fb560c0d68

Linux: 3.0.40

Change-Id: I15efc64d703527f9eaa81e99e65c66d8fd62d70e

Linux: 3.0.41

Change-Id: I57d7e0c6426bae151085a790235d7c2f26477079

Linux: 3.0.42

Change-Id: I751619c1166e7cc11fcb5dfe66576516d0acd0fe

Linux: 3.0.43

Change-Id: Ide4ed3463d74d176f69333a06bec67eab0602707

Linux: 3.0.44

Change-Id: Iea75fc04c96ed4c8f77aead00e4a63e0f5c77fc3
msm: display: Attach MDP IOMMU during first update after boot

For continuous splash support to work properly, attach the MDP IOMMU
device at a later point during boot to allow display use the
splash image from bootloader

Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>
Change-Id: Ife9a2afae1e9b9140ee74af0cc7dcf7ad945d4de

Conflicts:
	drivers/video/msm/mdp4_overlay_dsi_video.c
	drivers/video/msm/mdp4_overlay_dtv.c
	drivers/video/msm/mdp4_overlay_lcdc.c
msm_fb: Correct mdp_iommu array size to avoid scribbling

The mdp_iommu array was undersized. This resulted in scribbling of
nearby data structures which, through a long series of events,
lead to invalid pointer dereferences in the workqueue framework's
process_one_work() function on (at least) the 8930 SoC.

CRs-Fixed: 357011
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
Change-Id: Idb360e687c4cf050b6e73e575a13eba4b9d3c150
msm: vidc: Downloads firmware using pil_get.

Downloads video codec firmware using pil_get
for secure sessions only. Firmware is not
downloaded using pil_get for non-secure
sessions.

Conflicts:

	drivers/video/msm/vidc/1080p/resource_tracker/vcd_res_tracker.c

Change-Id: I84b7a1d70ed1f505838930a192e5d1afdbfc54c1
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
Signed-off-by: Zhoulu Luo <zluo@codeaurora.org>

Conflicts:
	arch/arm/mach-msm/board-8960.c
	arch/arm/mach-msm/devices-msm8x60.c
	drivers/video/msm/vidc/1080p/ddl/vcd_ddl.h
	drivers/video/msm/vidc/1080p/ddl/vcd_ddl_utils.c
	drivers/video/msm/vidc/1080p/resource_tracker/vcd_res_tracker.c
	drivers/video/msm/vidc/1080p/resource_tracker/vcd_res_tracker_api.h
	drivers/video/msm/vidc/720p/resource_tracker/vcd_res_tracker.c
	drivers/video/msm/vidc/720p/resource_tracker/vcd_res_tracker_api.h
msm: Enable all IOMMU's

Enable video, camera, display, and rotator IOMMU's so
that virtual contigious memory can be used by these
devices. Physical contigious carveout regions can
be reduced so that more memory is available to the
rest of the system when not in use by multimedia.

Change-Id: Ibfad7d6a55e04490be9e39a5539780657f6727e0
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
Signed-off-by: Zhoulu Luo <zluo@codeaurora.org>

Conflicts:
	arch/arm/mach-msm/iommu_domains.c
vidc: Adjust core timeout based on current core frequency.

Core timeout value is calculated based on the current core
clock rate during video play back.

Change-Id: I52f38560eda71dd0eaf208da68b4c3f74955661b
CRs-fixed: 354069
Signed-off-by: Mohan Kumar Gubbihalli Lachma Naik <mgubbi@codeaurora.org>

Conflicts:

	drivers/video/msm/vidc/1080p/resource_tracker/vcd_res_tracker_api.h

Signed-off-by: Zhoulu Luo <zluo@codeaurora.org>

Conflicts:
	drivers/video/msm/vidc/1080p/ddl/vcd_ddl_helper.c
	drivers/video/msm/vidc/1080p/ddl/vcd_ddl_shared_mem.h
	drivers/video/msm/vidc/1080p/resource_tracker/vcd_res_tracker_api.h
vidc:1080p: Set video core timeout value for Thumbnail mode

Video core timeout value is set only for thumbnail mode.
For normal playback senario default value is set.

CRs-fixed: 367222
Signed-off-by: Mohan Kumar Gubbihalli Lachma Naik <mgubbi@codeaurora.org>
(cherry picked from commit 740d5ad28484b42ae675721a66a1bd93081712c8)
Signed-off-by: Zhoulu Luo <zluo@codeaurora.org>

Change-Id: I32ee573b21fd79d44d578a773294ba9973f1c00d
Signed-off-by: Zhoulu Luo <zluo@codeaurora.org>
msm: vidc: Fixes bug in handling duplicate frames.

Fixes bug while closing encoder which supports
duplicate input frames. This fix decrements
the reference count of original frames
appropriately.

CRs-Fixed: 366268
Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
(cherry picked from commit af4a0ef0c6162e89c063b04da0a037246fcc76b9)

Change-Id: Icf36d82e78588bf4b5becf480bdccd4c7cda94a5
Signed-off-by: Ram Kumar Chakravarthy Chebathini <rcheba@codeaurora.org>
(cherry picked from commit c4cee17571e07afd6c0fe0c50c8934ccfef50ae2)

Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
msm: vidc: Perform cache flush only for non-secured
mode.

The cache flush for secure mode is not needed as
no memset is performed. Pass the correct parameter to
cache flush to avoid kernel panic.

CRs-Fixed: 374719
Change-Id: If9bfe1025b15b24e17ec49590c21a59d77f9414c
Signed-off-by: Arun Menon <menon@codeaurora.org>

Conflicts:
	drivers/video/msm/vidc/1080p/ddl/vcd_ddl_helper.c
msm_fb: display: prefill two writeback frames for lcdc.

Pre-fill two writeback frames before enable writeback mode
to avoid flickering for lcdc.

CRs-fixed: 325327
Change-Id: I2ae6edea4578441f2027cc7657c851cf9646a28c
Signed-off-by: Mayank Chopra <makchopra@codeaurora.org>
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
msm_fb: display: Featurize pm operations for external display

Featurize suspend/resume operation of the external display
to resolve compilation error in cases where external display
features are not defined.

Change-Id: Ifae276f514b67314a22e50fd80237e2168482d3f
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
msm_fb: display: Initialize work queue for MIPI command mode panels

Initialize workqueue for MIPI command mode panels for s/w refresher
mechanism to work in x-window type architectures.

Change-Id: Id67c54452aa0b02a39f480709fc4bcd6c7bde2eb
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
msm_fb: display: remove #if 0

Cleanup all #if 0s in display driver.

Change-Id: I32473b33ad4dff3e5d3d91aae42d70955836cd52
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>

Conflicts:
	drivers/video/msm/mddihosti.c
	drivers/video/msm/mdp_ppp_v20.c
msm_fb: display: MSM V4l2 video overlay driver

Provides a V4L2 device that uses the MDP overlay pipes (on MDP4),
or the PPP interface (MDP3) to overlay frames on top of display
framebuffer.

Signed-off-by: Alhad Purnapatre <alhadp@codeaurora.org>
Change-Id: Iab69d0a5acfe993d13cb7a585e292b9a87eb90ee
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>

Conflicts:
	arch/arm/mach-msm/board-msm7x27a.c
	arch/arm/mach-msm/board-msm7x30.c
	drivers/media/video/msm/Kconfig
	drivers/video/msm/mdp.h
	drivers/video/msm/mdp_ppp.c
	include/media/Kbuild
msm: display: Add device pointer with clk_get for retrieving clocks

clk_get requires device pointer to return appropriate clocks
for display subsystem. Rename the names of display related clocks
in the lookup table based on functionality.

CRs-Fixed: 336925
Change-Id: I784bc4e650d779d1422a9ff1b9a75e36d669e551
Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>

Conflicts:
	arch/arm/mach-msm/clock-7x30.c
	arch/arm/mach-msm/clock-8x60.c
	arch/arm/mach-msm/clock-pcom-lookup.c
	drivers/video/msm/lcdc.c
	drivers/video/msm/mddi.c
	drivers/video/msm/mddi_ext.c
	drivers/video/msm/mdp.c
	drivers/video/msm/mipi_dsi.c
	drivers/video/msm/mipi_dsi.h
	drivers/video/msm/msm_dss_io_7x27a.c
	drivers/video/msm/msm_dss_io_8960.c
	drivers/video/msm/msm_dss_io_8x60.c
	drivers/video/msm/tvenc.c