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>
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>
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>
diag: Fix feature mask received check

Currently, there is an array index out of bounds condition when
checking if the feature mask has been received from a peripheral
yet. Fix the check to prevent array index out of bounds.

CRs-Fixed: 564309
Change-Id: I38ea1584cdd3121c0981c247fe9ded37881b7f7a
Signed-off-by: Dixon Peterson <dixonp@codeaurora.org>
msm: clock: Use CLKFLAG_NO_RATE_CACHE in clk_set_parent

Some use cases involve the rate of a parent changing
from under a child. Therefore the set_parent op needs
a chance to update the rate field. Use the
CLKFLAG_NO_RATE_CACHE to allow the clk_set_parent to
go through to the set_parent op.

Change-Id: Icaf48915322539c84ef522621e35dafebe08b23b
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
Revert "msm: mdss:set brightness to min_bl if brightness is less than min_bl."

Backlight should not be limited to be above a minimum level in the
backlight scale function. Nor should it be limited for all backlight
drivers (should be implemented in the culprit panel's set_backlight func).

This reverts commit 2e5776fdb8acd50ad84752df0c6e0debf42cdf5d

Change-Id: Idcbf26eb3babb2a29964b9c7fb8e95aa31a8c5b8
Signed-off-by: Carl Vanderlip <carlv@codeaurora.org>
defconfig: Enable config to allow vmalloc savings

Enable the config ENABLE_VMALLOC_SAVINGS to reclaim
vmalloc space in low memory.

CRs-Fixed: 568470
Change-Id: Icd3c985ecc2ee04c09a67eed72ae4f8f5f2e57a3
Signed-off-by: Neeti Desai <neetid@codeaurora.org>
Kconfig: Enable config to allow vmalloc savings

Select the config to reclaim the vmalloc space in lowmem
and disable the map around the hole config, where selected,
as both the configs cannot be enabled together

CRs-Fixed: 568470
Change-Id: I9dd3e0123e4fe3e33554cdbdf5a82e344c230f47
Signed-off-by: Neeti Desai <neetid@codeaurora.org>
mmc: sdhci: Use max timeout and skip timeout calculation

Several data-timeout issues were seen, most of which were
due to the card taking a longer time to respond. This patch
increases the timeout of the controller to 0xF i.e. max
possible.

Change-Id: I6739de3eb5d9cccf8e39d9dc4730056782334162
CRs-Fixed: 536832
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
msm: mdss: Call wait4comp after commit for wb intf

Writeback path uses the comp event allocated on
stack to wait for ISR done. It crashes if
ISR tries to set the comp event after kickoff
thread timeout. This change removes the comp
event usage for writeback interface and starts
to use the wait4comp API like video/command
mode interfaces.

CRs-fixed: 555036
Change-Id: I74994a0cbe4039c6d3d4a51d573d343751182bff
Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
msm: Fix warning in sensors ADSP driver with GCC 4.7 toolchain.

Fixes below warning - could be potentially a bug as well.

arch/arm/mach-msm/sensors_adsp.c:877:39: warning: argument to 'sizeof' \
in 'memcpy' call is the same expression as the source; did you mean to \
dereference it? [-Wsizeof-pointer-memaccess]

Change-Id: I8e624b44120719d7359416a36912d0ef56f49982
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
msm: Fix NULL pointer dereference in sensors ADSP driver.

Memory is allocated on the heap via kzalloc for temp variable.
Then it is passed through error checking. Error checking is
incorrect however, because instead of immediately returning -ENOMEM,
the function continues without returning. temp could be potentially
NULL when passed in to memcpy, causing a NULL dereference and writing
to that location.

Change-Id: Ib9faef2a542d1d8da35e1b3f7292596c9bddadba
CRs-fixed: 563553
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
Merge "msm: Fix warning in sensors ADSP driver with GCC 4.7 toolchain."