mmc: sdio: Fix SDIO 3.0 UHS-I initialization sequence

According to UHS-I initialization sequence for SDIO 3.0 cards,
the host must set bit[24] (S18R) of OCR register during OCR
handshake to know whether the SDIO card is capable of doing
1.8V I/O.

(cherry picked from commit 25248b6782085f66787f0b5ea7864bd3dd4e685c)

Change-Id: I2f53cc248f745ce884686bf68f7a9058a7af1d1c
CRs-Fixed: 424685
Signed-off-by: Sujit Reddy Thumma <sthumma@codeaurora.org>
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
msm: sps: improve debugging support in SPS driver

1> Add the option to output partial desc FIFO.
2> Add the option to output data block header.
3> Add the option to output all registers of selected pipes.
4> Add more testbus selector options.
5> Remove the duplicate code for testbus selector values.
6> Add the options for bundle output of testbus register, BAM global
registers, pipe registers and desc FIFOs.

Change-Id: I02a77be6006015f705ee962cc35193f44b27e297
Signed-off-by: Yan He <yanhe@codeaurora.org>
tspp: Fix incorrect usage of clk_disable to support PM

The TSPP driver uses clk_prepare_enable() API to use the appropriate
clocks. When the device is not used, clk_disable_unprepare() should
be called. However, clk_disable() was used by mistake instead.

Change-Id: I70f8e9e8a7d2aef3a781be160b72096252e964de
Signed-off-by: Liron Kuch <lkuch@codeaurora.org>
Merge "msm: camera: Enable VFE Out of Order writes."
Conflicts:
	drivers/media/video/msm/vfe/msm_vfe32.h
msm: Add null pointer checks

Add null pointer checks to ensure subsystem API calls
do not dereferences null pointers and cause system
crash.

Change-Id: I5d5efc21b346ac5b9f6ddb2e42354aaf40fb56a7
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
ASoC: msm: Mixer control to update the sample rate of HDMI interface

Updating the sample rate for the compressed stream playback of the HDMI
interface through the mixer control.

Change-Id: Ib7b01f490f5e209512433a82faf96af0a3a810bd
Signed-off-by: Aviral Gupta <aviralg@codeaurora.org>

Conflicts:
	sound/soc/msm/mpq8064.c
msm_fb: display: fix fence fd list be put twice

msm_fb_wait_for_fence() will put fence fd list if sync_fence_wait()
failed. After that same fd list wil be put one more time. This
cause a fd put twice and cause system crash at the time fd
was closed.

Change-Id: If6a358e051c98841e34c23d81098243003ef0836
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
ASoC: msm: qdsp6: Add support to configure ISO and ARIB coefficients

Add support for configuring ISO or ARIB stereo mixing
coefficients. This change introduces a function with whichi,
AAC multi-channel driver can configure ISO or ARIB coefficients
according to configuration done by the client.

Change-Id: I72b74033532a276fa3bc1d305a04720ff6767409
Signed-off-by: Amal Paul <amal@codeaurora.org>
msm: audio: qdsp6v2: Add support to configure ISO and ARIB coefficients

Add support for configuring ISO or ARIB stereo mixing coefficients.
This change introduces an IOCTL through which the user space can
configure ISO or ARIB coefficients.

Change-Id: Id08c859ce8bc18d7d0e41ce1ecb6a08f0794e067
Signed-off-by: Amal Paul <amal@codeaurora.org>
wcnss: Add support for nv bin download at coldboot

NV bin is downloaded when wlan driver is loaded. This change
adds support for NV bin download during coldboot of WCNSS and
thus much before wlan driver is loaded. NV bin id not downloaded
by platform driver during SSR.

Change-Id: I070aae4270c54a3af4d4c0a24897e8c0c9cbfaa5
Acked-by: Rajesh Chauhan <rajeshc@qca.qualcomm.com>
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>

Conflicts:
	drivers/net/wireless/wcnss/wcnss_vreg.c
	drivers/net/wireless/wcnss/wcnss_wlan.c
media: dvb: Fix secure demux application load check

To deduce whether secure demux is available, an attempt is made to
load the secure demux appliction during module initialization.
The loading process retrieves the application from filesystem.
When kernel configuration is set so that the module is built-in
as part of the kernel image, filesystem is not yet available
and loading fails.
This change moves the loading attempt from initialization
to first usage of status query, which occurs after device
is opened by user-space and filesystem is sure to be available.

Change-Id: I22d24054196f6068bf28e2ba6f2a4da6a9340730
Signed-off-by: Gilad Broner <gbroner@codeaurora.org>
misc: isa1200: add device tree support

Add device tree (DT) support for isa1200.  Extract device
properties from DT and store it in platform data structure.

Change-Id: I9ed9cc36cb07db00634b9e73a8052e62d313d484
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
misc: isa1200: properly disable clocks

Since clk_prepare_enable is being used when enabling clocks,
clk_disable_prepare should be used to disable them.

CRs-fixed: 453579
Change-Id: Ic15c99e1fa82e45a3b9165af60c104a6bb736f92
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
msm: sps: check the result of memory allocation

Check the result of memory allocation request before use it, to avoid NULL
pointer dereference.

Change-Id: I56376b4f503d3c7134ae3ab73fccd5b0b3a40290
Signed-off-by: Yan He <yanhe@codeaurora.org>

Conflicts:

	drivers/platform/msm/sps/sps_bam.c

Signed-off-by: Dipen Parmar <dipenp@codeaurora.org>
msm_fb: display: Do clock control within mdp4_hw_init

Since mdp4_hw_init() access mdp registers, mdp clock control
within mdp4_hw_init() is necessary.

CRs-fixed: 455506
Change-Id: I768f468314fc920029b4c88e49ef6a74f6b74f58
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
msm_fb: Update MDP fence wait behaviour

The current fence wait times out too early in cases where the GPU
is under a heavy workload. Change this behaviour to warn and wait
for a longer time for GPU to complete it's work.

Change-Id: I8b20c22733a77c1aaea4a1fd1e4daaa14b5ec2fd
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
msm:camera: Add new vfe32 commands

Add new vfe32 commands for independent
gamma R, G, B values update and config.

Change-Id: If81b3c1257a64c5c26f8baf7264cae79cd682675
Signed-off-by: Hariram Purushothaman <hpurus@codeaurora.org>
msm_fb: display: balance secure map and unmap in each mfd

Make sure secure map and unmap get called in each mfd and balanced.
Otherwise, secure contents can not be played for both primary and
hdmi.

CRs-fixed: 450427
Change-Id: I5399be64fbb104dc3cbe2c5c65b3f4406f47473c
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
slimbus: Callback to indicate device report present message

Clients can register a callback (just like probe) and that callback
will be called when the client's device reports present per slimbus
specification. The callback is hosted in a workqueue to avoid doing
it in same context from which probe is called (and/or in the context
receiving report present message). Callback is called when the device
reports present for the first time after the bus is initialized.

Change-Id: I8396b87121950f99a09764d497bf2d4b1535565d
Signed-off-by: Sagar Dharia <sdharia@codeaurora.org>
(cherry picked from commit 0e7a1ef6292642d2c7c22fcaf8d5da1e7610f26d)

Conflicts:
	drivers/slimbus/slimbus.c
slimbus: Allow controller to override default scheduling algorithm

Framework provides a slimbus scheduling algorithm and controller may
choose to override it. e.g. controller will override this if it
supports fixed set of channels at a fixed clock gear.
In that case, it is controller's responsibility to act on client
requests and update channel scheduling, subframe coding information.

Change-Id: I31fe72ef85f931900467b737652da7516d173dc5
Signed-off-by: Sagar Dharia <sdharia@codeaurora.org>
(cherry picked from commit 4aec9230916f844d89b2565d09a7b874f181d5e0)