msm: vidc: Return min buffer count in VIDIOC_REQBUFS.

- If stream triggers multiple port reconfigure events, number of
  buffers required for output plane incremented due to actual
  buffer count returned from video driver.
- Minbuffer count should be return when buffer requirement called.

Change-Id: I7dfd5077569316722027a6219217037a0021b567
Signed-off-by: Srinu Gorle <sgorle@codeaurora.org>
msm: kgsl: Wake up gpu on kgsl_ioctl_timestamp_event only if necessary

Any call of kgsl_ioctl_timestamp_event wakes up gpu. In some cases
(like retired timestamp) it's not necessary. Wake up gpu only if it's
necessary.

Signed-off-by: Vladimir Razgulin <vrazguli@codeaurora.org>
Change-Id: I845faf6e9c6e4c9882a68489b64223919be3d21c
ASoC: msm8x10-wcd: Enable CDC_IN2 and CDC_IN3 to ADC2

Enable the audio recording to ADC2 from either CDC_IN2 or
CDC_IN3 to make stereo recording available on analog MICs.

Change-Id: I88b5f0eebe0ead6aba3cd8fd5fc880b81994d947
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>
msm: mdss: validate fb backlight inputs

Ensure backlight level is less than the max backlight
brightness and the backlight scaling factor is at most
1.

Change-Id: I424ed22af48ecae46371291fe88a114cf3fc7c31
CRs-Fixed: 516699
Signed-off-by: Manoj Rao <manojraj@codeaurora.org>
msm: gpiomux: gpiomux configuration for skuf

Skuf use different GPIO configuration than MTP that need individual
configuration.

Change-Id: Iad4f55105232c3d0eb07d0f2a60f5046ba3875ef
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
input: makefile: Add makefile and kconfig for GT9xx CTP

Add Makefile and Kconfig to build Goodix GT9xx touchpanel driver.

Change-Id: Ibbcdcbb4563bc022d6e4034c37bc633eb9b34315
Signed-off-by: Figo Wang <figow@codeaurora.org>
input: touchpanel: Goodix GT915 driver cleanup

Code clean up that makes the driver more like a linux driver.
Add some error recovery to make sure driver will not crash when
error is occurs.

Change-Id: I3af425f5f0251ec576168f72a2059f85c3be4358
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
input: touchscreen: Goodix gt915 driver cleanup

Cleanup the gt915 goodix driver from checkpatch failures.

Change-Id: Id841423f229b6abc674cc1e3c6441d55062b6ab4
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
input: touchpanel: Add DT support for Goodix touchpanel driver

Add device tree parser to allow Goodix touchpanel driver to get
board dependent configuration from device tree.

Change-Id: I702400140130fd3b673e0e13a8dbdb7060bba881
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
input: touchpanel: Add power control to GT9xx driver

Add power initialization  function to request internal and external
LDO depends on device tree configuration. Add power control function
to enable and disable device power.

Change-Id: If063900f8cd61c36c4b200d781c68e742cd6bbaf
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
ARM: dts: msm: Add Goodix touchpanel support for skuf

Device tree to enable Goodix Gt915 touchpanel for skuf.

Change-Id: Ied4fd7630ca02a8f4d341c4495647ce4179ef27e
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
defconfig: msm8226: Enable gt9xx CTP driver

Enable Goodix gt9xx CTP driver for 8x26skuf.

Change-Id: I321b4d0ca77cf4512d8248057f006584b0fd8bef
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
input: touchpanel: Add FB notifications support to GT9xx

Add support for FB notifications to trigger suspend/resume
based on FB blank/unblank events.

Change-Id: I61803e3a731e047d0641e3b1ccbae58b9bd1bd89
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
input: touchpanel: enable protocol B for skuf CTP driver

Skuf use touch panel protocol B for touch event recognition that
needs enable this protocol in driver.

Change-Id: Ic855ed4fb0277a9bc5996bcb310db67b8ccf5c03
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
msm: mdss: copy gamut conf tables from kernel mem

Read the gamut config data from hardware into kernel's
memory and copy back to user space address using copy_to_user
API. This prevents MDP PP driver from writing directly into
userspace virtual address to copy gamut config data.

CRs-Fixed: 516720
Change-Id: Ib1f53e949696f7d4a45410c529fe9375c502090f
Signed-off-by: Manoj Rao <manojraj@codeaurora.org>
ASoC: msm: Fix error recovery in register & deregister vol table

Modify the register & deregister volume table functions
in the voice driver so that no error is returned when
successful. Add error returns for cal reg & dereg
functions and improve error recovery.

Change-Id: I05d14c815cadebc064bee60aada0bf07588e4b6e
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
ARM: dts: msm-pma8084: Switch VADC to polling

Switch VADC to use polling mode to check if the
conversion request is complete by checking the status
bits for the corresponding VADC registers to
indicate the conversion is complete.

Change-Id: Ic5980b86a2fd567ce4a8ace18d9f15616e5b1b5c
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
msm: restart: add support for SPMI PMIC arbiter shutdown

Add a secure monitor call into the V2 restart and shutdown paths
which disables the SPMI PMIC arbiter immediately before the
PS_HOLD signal is lowered to restart or shutdown the target.
This feature is used to avoid PMIC SPMI lockups that occur on
certain PMIC chips if PS_HOLD is lowered in the middle of an
SPMI transaction.

Change-Id: I0d689cb99d6cc04879baa3dea05fa70cf00fb2ef
CRs-Fixed: 517979
Signed-off-by: David Collins <collinsd@codeaurora.org>
crypto: msm: Fix Uninitialized flags

Due to uninitialized "flags" field in the request structure,
incorrect choices are made in the qce driver layer with
regards to setting crypto hardware registers.

Initializing the flags fixes this incorrect setting of the
registers.

Change-Id: Ic40319ea5e15e66cbafd28f727a9bcc6ea41b1ca
Signed-off-by: Mona Hossain <mhossain@codeaurora.org>
Kbuild: Export msm_dsps.h to user space

Export msm_dsps.h to user space to interact with DSPS
driver.

Change-Id: I0cfcc883e704c8e59a0cb7c76ef56a3680573e4e
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>