msm: mdss: hdmi: NUL-terminate spd data

NUL-terminate SPD Vendor name and SPD
Product description data stored in the
control structure of hdmi driver. This
avoids overflows in print messages and info
frames.

Change-Id: I0a0adcfad06625e4d7368d3c5cd0ec38f0e047d8
CRs-Fixed: 520148
Signed-off-by: Manoj Rao <manojraj@codeaurora.org>
sdhci: sdhci_stop_request() returns error when no request

There is race between sdhci_tasklet_finish()
and sdhci_stop_request(): when the request is finished before
stop flow called, error returned.

Change-Id: Ic036feae925b2e9e5435e44f97b24a179547bf49
Signed-off-by: Konstantin Dorfman <kdorfman@codeaurora.org>
mmc: core: skip stop flow when current request already done

When mmc_stop_request() has no request to stop, because underlying
host driver reported this, the flow should wait for the mmc done()
callback marking that urgent still pending.

Change-Id: Iacc95591ee76a965916af05a31a67dd8997c233e
CRs-Fixed: 538117
Signed-off-by: Konstantin Dorfman <kdorfman@codeaurora.org>
ARM: dts: msm: Add support for Synaptics touch controller

8x10 MTP with 720p uses Synaptic touch controller. Add dtsi
entry to support this panel.

Change-Id: Ieb43223997a590be3d642946b74e1820df25220e
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
ASoC: wcd9320: Fix the VI feedback enable/disable sequence

Speaker protection is supported only in slimbus mode.
Voltage and current data is captured using TX11/TX12
ports in slimbus mode.For I2S mode Voltage and current
data can be captured using TX9 and TX10 ports.
Quad mic recording usecase uses TX9/TX10 ports, hence
in slimbus mode TX9/TX10 ports shouldn't be used for
speaker protection.Change removes the enable/disable sequence.

CRs-Fixed: 561097
Change-Id: I9642e703d3ab884ae1260569020853b71e26709d
Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
radio: iris: Checking if driver's buffer is large enough.

Checking if driver's buffer is large enough to copy
the data from user space.

Change-Id: I7b4eed81cf77ce2973669ce18ccd95a5df397d82
CRs-fixed: 552329
Signed-off-by: Satish Kodishala <skodisha@codeaurora.org>
slim_ngd: Add NULL pointer check apart from error check

Check against NULL pointer after allocating
the memory for msm_slim_ctrl structure pointer
dynamically to avoid unexpected crashes.

Earlier this pointer is checked only for error
codes. In this patch NULL pointer check is also
added.

CRs-Fixed: 562417
Change-Id: I5cd731144f88b89ee412d19f110b3df6426186f7
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
msm: mhl: sii8334: initialize return value

Initialize the variable holding the return code
to appropriate error value so that an incorrect
return code isn't sent to the caller.

Change-Id: I7654523c37ac9b7a60dda1fae77dfacc196df6fa
CRs-Fixed: 524484
Signed-off-by: Manoj Rao <manojraj@codeaurora.org>
ARM: dts: msm: Reduce the clocks for SD card slot for MSM8610

The SD cards functionality on QRD devices are failing
with CRC errors when used with higher clock / bus modes.

So reduce the clock speed for SD card slot.

CRs-Fixed:  491789
Change-Id: I07df5bcab12579d4db287913f7e082441bac7e6d
Signed-off-by: Pratibhasagar V <pratibha@codeaurora.org>
ARM: dts: msm: raise limits for WLAN LDOs for 8974/8x10/8x26

To be able to fully characterize WLAN the maximum limits
for WLAN rails need to be slightly raised.

Fix this by correcting the regulator-max-microvolt property
for the corresponding LDOs.

CRs-Fixed: 561823
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
Change-Id: I6f21e7fe4b05d8edf16a86a65ba948322f9f086a
msm: vcap: disable vcap driver by default

This is to avoid including the vcap driver for
non-applicable targets.

Change-Id: Id282abe2ebe76e1ba8c546e1082690a4f463bda7
Signed-off-by: Xiaoming Zhou <zhoux@codeaurora.org>
defconfig: 8610: remove virtual frame buffer on perf defconfig

Virtual frame buffer is only used for early kernel bring-up before
display driver is ready.  This should be disabled once display
driver is available.

Change-Id: I61046ad4bafa7c3bc7d4009e18e35bcbd6a39e80
Signed-off-by: Xiaoming Zhou <zhoux@codeaurora.org>
msm: ipa: fix potential NULL pointer dereference

This dereference can happen in error leg of
ipa_update_connections_info.

Change-Id: I712df709061e84bbe0890c83691f713c04b111b1
Signed-off-by: Ravi Gummadidala <rgummadi@codeaurora.org>
msm: ipa: fix potential NULL pointer dereference

This dereference can happen in error leg of ipa_reset_hdr.

Change-Id: Id060c978a2aaa88ab6bce2efb3c81a007e2d2292
Signed-off-by: Ravi Gummadidala <rgummadi@codeaurora.org>
msm: ipa: fix potential NULL pointer dereference

This dereference can happen in error leg of ipa_reset_rt.

Change-Id: Idfd516eba5618a2b28c37907d0c299b3cc617218
Signed-off-by: Ravi Gummadidala <rgummadi@codeaurora.org>
msm: ipa: fix potential NULL pointer dereference

This dereference can happen in error leg of ipa_reset_flt.

Change-Id: I6665524864e345566314ac89e11394f7a2a89f98
Signed-off-by: Ravi Gummadidala <rgummadi@codeaurora.org>
msm: vidc: Fix issue with picture type property

Wrong picture type is being passed to FW resulting in
SESSION error. Fix the issue by parsing and passing
correct picture type value.

Change-Id: Ie274c84009fa35552d3dad604de71808e20c85ee
Signed-off-by: Jayasena Sangaraboina <jsanga@codeaurora.org>
msm: vidc: Set default values for plane and image sizes

G_FMT shall return a valid non-zero value to client.
plane_sizes are set in REQBUFS but G_FMT is not necesary
call after REQBUFS.

Change-Id: I72e356d44161ba30019ecb029f1bb2da3d2267b1
Signed-off-by: Jorge Solano Altamirano <jsolano@codeaurora.org>
ASoC: wcd9310: Codec changes to use new macros

ASoC macros and interface that codec uses have been modified since
kernel 3.7. Change updates the codec driver to use 3.7
asoc macros and interface.

Change-Id: I4281b2980bb0023cc25a75cd6cb3527dc2a8b69b
Signed-off-by: Jay Wang <jaywang@codeaurora.org>
input: touchscreen: Add fw_name sysfs entry in Goodix driver

Add fw_name sysfs entry in Goodix driver. This entry allows
user to read and write firmware name from sysfs.

CRs-fixed: 555332
Change-Id: I69585d757f1a6dc40834a99ee67c872bf6f3ea13
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>