net: rmnet_data: Fix compiler macro comments

Removed incorrect compiler macro comments in MAP header file.
Comments are now up fixed up to standards.

CRs-Fixed: 553399
Change-Id: I6373753e644f3801b7a25184e4cff5772f365a02
Signed-off-by: Harout Hedeshian <harouth@codeaurora.org>
diag: Potential Null Pointer Dereference of user buf

Currently there is no check for the buf coming from
the user side,thus no way of knowing whether the buf
is null or not. This may lead to potential null
pointer dereference. This patch will fix that
possibility.

Change-Id: I9a66f3354c98bf03f9f5439a66078f247698d31c
CRs-fixed: 540570
Signed-off-by: Katish Paran <kparan@codeaurora.org>
msm: mdss: Add scalar data structure to enable scalar programming

mdp_scale_data is a data structure added to mdp_overlay structure
to receive scalar factors for the QSEED filter such as
initial phase, phase step and pixel extension from the userland.
This data is need to achieve image clarity when using the scalar.

Signed-off-by: Sree Sesha Aravind Vadrevu <svadrevu@codeaurora.org>
Change-Id: I88e5e0cc9f4e604f38fa7c35a6a93378d3b55050
msm:cpp: Validate data lenght in Set Clock command

The lenght of the data packet recived in case of
VIDIOC_MSM_CPP_SET_CLOCK command must be validated.
It have to be equal or smaller than the size of the
variable used to hold the data. If this condition
is not met stack-based buffer overflow will occur.

Change-Id: I68002e088aaca1ca740985d9e26e9161f130b499
Signed-off-by: Iliya Varadzhakov <ivarad@codeaurora.org>
ARM: dts: msm: add crypto devices for APQ8084

Add crypto device tree entries for APQ8084 bring up

Change-Id: Ie17a21e695b655a4d75a53120060beb2df90b0c7
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
msm: clock-8084: add clock for crypto drivers

Allow crypto drivers to register for clock resources.

Change-Id: Iae85b1373fc820c43fb46a1e24d2eed3f9c73ca4
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
msm: rpm: Fix typo in rpm-standalone device tree property

standalone was misspelled in the binding spec.

Change-Id: Id140d6949e440c79ab02bfdec2f027d378f6ba91
Signed-off-by: Kumar Gala <galak@codeaurora.org>
ASoC:wcd9304:RX voice call is distorted in handset device

Issue:The RX voice call is distorted from handset,after reboot
          the device its working as expected.
Root cause:This happens due enable override gain in cp_static
            register
Fix:Configure the cp_static override gain as Half gain

Change-Id: I67e6c41ef4fb5f7059a251bcc5bc1e4686b7cc29
CRs-Fixed: 532155
Signed-off-by: Mohammad Johny Shaik <mjshai@codeaurora.org>
msm: vidc: Print out the proper height and width in debugfs

The driver was printing out the width and height from the OUTPUT port by
default, which is controlled from the client.  If the client doesn't
know any better and sets a bogus width and height, we would mirror that
in debugfs.  The width and height on the CAPTURE port is something we
receive from Venus and is guaranteed to be correct.

Change-Id: Ic5762cd63377aaef19ca488a2f9a31304ae0eafe
Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
power: qpnp-bms: allow additional corrections in low voltage

When the battery is in the low voltage region, allow corrections
even when the SoC estimate is higher than 15. This case can occur
in low temperature cases where it's necessary to correct SoC very
quickly. For example, in -20 degrees celsius, the battery internal
resistance is very large (1 to 1.5 Ohms). A small change in current
can make a huge change in SoC. There has been times where SoC needs
to be corrected from 70% to 0 very quickly, and the BMS driver cannot
wait until the soc estimate goes below 15% to do so.

Additionally, when in the low temperature region, allow more SoC
change per second in order to keep up with the large SoC adjustments.

Change-Id: I921d4e8f6ed7e739bade13eecdf67ef0317b326b
Signed-off-by: Xiaozhe Shi <xiaozhes@codeaurora.org>
ARM: dts: Remove references to deprecated vidc properties

qcom,vidc-(ns|cp)-map and qcom,has-ocmem properties have long been
deprecated since qcom,vidc-iommu-domains qcom,ocmem-size were
introduced.  Remove all stale references to them in various DT files
and bindings Documentation.

Change-Id: I67015b3d159a532f6e6b736e6feeecd7ec43ae24
Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
ARM: dts: msm: Modify VFE master port for msm8226

The master port value for VFE is incorrectly listed as 16 which could
result in an illegal memory access. Modify this to be 7.

CRs-Fixed: 565266
Change-Id: Ieaa33b2acc1c297ae4f37de7994582b24d391edd
Signed-off-by: Girish Mahadevan <girishm@codeaurora.org>
msm: camera: Proper probe deferral in pproc driver

Error path in cpp/vpe driver was not correct in case of unavailable clock.
This caused a kernel crash. This patch adds proper handling of error
during cpp initialization:
In case of error during probe, the allocated resources are released and
returned error is propagated.
The patch adds similar handling in error during open.

Change-Id: I910688d7d567f3db3d44ed815db2576f6df7258b
Signed-off-by: Petar Sivenov <psiven@codeaurora.org>
ASoC: msm: Fixup number of channels for FM transmitter

Backend during FM transmission supports only stereo
channels. Fix up the number of channels to 2 for FM
transmitter.

CRs-fixed: 556019
Change-Id: I98e08432e66e5910edfa5472969e1c638c25ee2c
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
msm: mdss: Fix rgb_565 format for 90 degree rotation

Make rotator output format for rgb_565 and bgr_565
as rgb_888 for 90 degree rotation as expected by
MDSS.

Change-Id: I0865b5688fa662d1e88d1efebef26a38d4abfd61
Signed-off-by: Pawan Kumar <pavaku@codeaurora.org>
ARM: dts: Correct VENUS_WRAPPER_VBIF_PRIORITY_LEVEL for apq8084

The correct register setting for VENUS_WRAPPER_VBIF_PRIORITY_LEVEL
should be 0x5555556 rather than 0x0.

Change-Id: I88980fd9461562e9aecb32a2464b7bee1c5a7483
Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
defconfig: Enable config to allow vmalloc savings

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

Change-Id: Icd3c985ecc2ee04c09a67eed72ae4f8f5f2e57a3
Signed-off-by: Neeti Desai <neetid@codeaurora.org>
ARM: dts: msm: Add PIL VPU device for mpq8092

Add the PIL VPU device node to support the booting of
the VPU subsystem on mpq8092.

Change-Id: I44e9b89a398d7a05eca7f0c093ce9a48c441c0dd
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
ARM: dts: msm: add dt entry for remote debugger driver support

The  Remote Debugger Driver allows a debugger running on a host
PC to communicate with a remote stub running on peripheral
subsystems. Populate device tree with information to support this
functionality.

Change-Id: I45e0fec12ca5582fae5fef6ccde58010a59a9567
Acked-by: Vivek Iyer <viyer@qti.qualcomm.com>
Acked-by: Mahesh Rohera <mrohera@qti.qualcomm.com>
Acked-by: Jay Jayanna <jjayanna@qti.qualcomm.com>
Signed-off-by: Aparna Das <adas@codeaurora.org>
ARM: dts: msm: add remote debugger driver dt node on 8974

The  Remote Debugger Driver allows a debugger running on a host
PC to communicate with a remote stub running on peripheral
subsystems. Add device tree node for this driver on MSM8974.

Change-Id: I7aaef963eaed54cd23c7e877050f3a10bf9249ba
Acked-by: Vivek Iyer <viyer@qti.qualcomm.com>
Acked-by: Mahesh Rohera <mrohera@qti.qualcomm.com>
Acked-by: Jay Jayanna <jjayanna@qti.qualcomm.com>
Signed-off-by: Aparna Das <adas@codeaurora.org>