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>
msm: camera: Fix various small issues in vpe driver

Upper and lower bound checks are enforced for num_buff
which is passed from userspace and memset inst_info
to zero to avoid unwanted data passed to userspace

CRs-fixed: 547927
Change-Id: I0d589ef26e57bb26dc006b5927461edcc95e593e
Signed-off-by: Hariram Purushothaman <hpurus@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>
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>
msm: wfd: Restart hrtimer after forwarding it

Calling hrtimer_forward_now() outside of the hrtimer callback context
and not restarting it seems to be a misuse of the hrt APIs.

Change-Id: Ia8e82a6ad327acddc135835268a755e3646d2ee8
Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
msm: camera: Checking an enum value greater than zero

An enum value cci_i2c_master is not checked to be greater than 0.
Add the check.

Change-Id: Ibe75ab7155def45d81b8127c5eda3fa2ed570bce
Signed-off-by: Xu Han <hanxu@codeaurora.org>
defconfig: Disable CONFIG_MSM_OCMEM_NONSECURE for msm8226

Disable CONFIG_MSM_OCMEM_NONSECURE, as secure environment
support is available on target.

CRs-Fixed: 563527
Change-Id: I5523df86193017dedfeddef7153229ff8a5962a0
Signed-off-by: Neeti Desai <neetid@codeaurora.org>
ASoC: wcd9xxx: Reset MBHC registers upon plug removal

Reset MBHC Scaling mux and release detect when mechanical
plug removal is detected. This is to ensure that there is
no micbias voltage present when plug is removed immediately
after insertion.

CRs-fixed: 564412
Change-Id: I1f081e4d9e70ffca4881bce7b5ea681f9546f51c
Signed-off-by: Phani Kumar Uppalapati <phaniu@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
coresight: fix error checks for byte counter init code

Fix error checks for byte counter initialization functions that
are called during probe to avoid null pointer accesses.

CRs-Fixed: 562303
Change-Id: I8f7de6fc4b0658cf649e472d12a00ea5733a8b0a
Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
power: qpnp-charger: fix vin_min for values > 5.6V

The set and get functions are incorrect for values
higher than 5.6V.

Fix this by correcting the calculations of VIN_MIN.

Change-Id: I32bb482db5425eedb30efc2d19a23981767b72d8
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
msm: mdss: fix the dma-s register offset on 8x10

The register offset for DMA-S pipe was incorrect.

Change-Id: I2ab3ad83371b399cd7c625948198b3f397866750
Signed-off-by: Xiaoming Zhou <zhoux@codeaurora.org>
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>
msm: mdss: allow meta data to be retrieved in display off state

This is to allow client to retrieve display meta data information
even while the display is turned off.

Change-Id: Id5c3a3ebac9039a8ff045eb662683962e16e46bd
Signed-off-by: Xiaoming Zhou <zhoux@codeaurora.org>
msm: Remove files no longer buildable under arch/arm/mach-msm

Removed the files to reduce efforts as we move driver code out of mach-msm

Change-Id: Ibe2107ae91cb282d0c9f3e7f564f50b6f7f8694f
Signed-off-by: Mohammad Johny Shaik <mjshai@codeaurora.org>