radio-iris: Return hardware capabilities

- Radio iris isn't properly advertising its hardware capabilities to
  userspace which makes it look like radio is unsupported.
  Fix this so that userspace sees that radio is in fact supported
- Upadate the hardware capabilities while returning response to query
  device capabilities.

CRs-fixed: 512171
Change-Id: I52d6479cfc1e974735be5f835a0d564fb6d5c1d4
Signed-off-by: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>
input: synaptics_i2c_rmi4: Release touch data before suspend.

Release all touch data before touch device switch to suspend
state.

Change-Id: I17d237cce5e6cb7e092a96e6b40524810849b510
Signed-off-by: Sarada Prasanna Garnayak <c_sgarna@codeaurora.org>
ARM: dts: msm: optimization to nt35521's on/off sequence

Optimize nt35521's init/uninit sequence, reduce the panel on
delay by 180ms, and reduce panel off delay by 170ms. This could
speed up display blank/unblank.

Change-Id: I4911df5b65753a2658d3585e4a16bdfa5373d44c
Signed-off-by: Ray Zhang <rayzhang@codeaurora.org>
msm: 8x26:Add active setting to SPI gpio on 8x26

8x26 spi gpios are having suspended setting
only and func_1 is configured as part of
suspended setting. It is causing to draw
some current.

CRs-Fixed: 539469

Change-Id: I2c1960236b9d805ef8ae8274ef3e2f4934ff8775
Signed-off-by: Venkat Raju Sana <c_vsana@codeaurora.org>
Signed-off-by: Sana Venkat Raju <c_vsana@codeaurora.org>
Sensors: remove the MPU3050 driver parent

Remove the MPU3040 gyroscope driver parent to allow the system
registers the driver in the "/sys/devices/virtual/input" folder.
The system will give the driver sysfs interface correct permission
according to the ueventd file.

CRs-Fixed: 510210
Change-Id: I957acc809005a06f6a8219140d8a4d609e46b435
Signed-off-by: Jie Cheng <rockiec@codeaurora.org>
mdss: display: queue dcs commands at video active period

Since dcs command is transmitted at BLLP by dsi controller for
video mode panel, dcs commands need to be queued to hardware
during video active period so that they can be transmitted at
next BLLP.

CRs-fixed: 525685
Change-Id: I90a28b7178bd21fd4c71903937809154380227e7
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
msm: smd_tty: fix missing open_timeout attribute

When systems are configured using device tree, the open timeout device
attribute is not created.

Move device attribute creation code to common device init function.

CRs-Fixed: 540229
Change-Id: I36e41d41857547a31650f87d6cd07fae8b58d750
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
msm: smd_tty: replace wake lock with wakeup source

Wake locks have been deprecated.

Remove deprecated wake lock calls and replace with wakeup sources and
power-management calls.

Change-Id: Ibb3d84ae20ed0af43254e46b344be8d86e97c717
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
msm: smd_tty: Add locking hierarchy

SMD TTY has several locks and it isn't clear what each lock manages.

Add a locking hierarchy and clarify locking scope.

Change-Id: I0026925a80548ef0025666d028b35e70d752a317
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
msm: smd_tty: add separate port locking

Currently a single mutex is used to lock access to opening and closing
SMD TTY ports.  This lock is held while waiting for the open timeout to
expire which unnecessarily delays ports that could be opened
immediately.

Add an individual lock for each port to enable each port to be opened
and closed independently.

CRs-Fixed: 541915
Change-Id: Ic698d9b6a1e5f6f4676a6530d3c7c0bc52ba35aa
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
msm: smp2p: enable extra logging

Recent triage issues require extra logging to track down failure cases.
Often, these issues are difficult to reproduce, so we cannot manually
enable extended logging and reproduce the issue to capture the cases.

Enable extra logging by default.

Change-Id: I3f442c82da410302ebf01f98f4590ea07087030a
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
msm: smp2p: update documentation

Updates to the SMP2P documentation to:
 * Add link to the Device Tree documentation
 * Add Subsystem Restart Description
 * Correct SMEM IDs

Change-Id: I81bf9fe66c6c3649b44616c2764400f91b68778c
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
msm: smp2p: add SSR boot-up handshake

Booting up after an SSR, a remote subsystem will go through the
following sequence if the SMP2P is already in the OPENED state:
	1) write 0 to all entries
	2) trigger an interrupt to the remote processor (which may be Apps)
	3) clients may now start writing to entries

If Apps does not process the interrupt in step 2 until after the client
writes to an entry (step 3), then Apps will not notify clients of the
X->0 transition from step 1.

Add an SSR handshake to ensure that the remote processor has time to
process the interrupt from step 2.

CRs-Fixed: 528683
Change-Id: Ia04324c2aee38c907cded2c742b809946ec4040a
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
msm: vidc: add 4cc for hevc hybrid decoder

Change needed to support hevc hybrid decoder
in v4l2 video driver.

Change-Id: I830ccc7c180a3b09d8046873f9fa1daf195f6b65
Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>
ARM: dts: msm: Update 8x10 panels ON/OFF commands

GCDB update was off by recent ON/OFF commands changes
for all 8x10 target panels. This leads to
display artifacts for truly panel during different
test scenarios. This change fixes all those commands
for all panels.

Change-Id: I8b107b8ff0c9e0554606073a1dc9c5d2288bc11f
Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
ASoC: wcd9xxx: check NULL for mbhc->resmgr->reg_addr

Check the mbhc->resmgr->reg_addr before getting the
mbhc->resmgr->reg_addr->micb_4_mbhc to avoid
 the null pointer crash

Change-Id: I8a6d8bda90a30782e68760b94cc52cd6ddd52af6
Signed-off-by: Meng Wang <mwang@codeaurora.org>
ARM: dts: msm: add ssd2080m driver for skug

skug uses ssd2080m as panel driver IC, add dts file for it,
which includes initialization code, dsi timing, gpio and
power definitions

Change-Id: I0563c9f106b9d9b393632679517f77ec78583955
Signed-off-by: Ray Zhang <rayzhang@codeaurora.org>
ASoC: msm8226: Add Listen FE and BE dai links

Listen feature is used by client applications to detect
keywords from user through microphone. This change adds
frontend and backend dai links to machine driver.

Change-Id: I26ab3ee78e17fa180ed65f7042298c2e041b090d
Signed-off-by: Venkat Sudhir <vsudhir@codeaurora.org>
leds: leds-qpnp: Add brightness control for mpp leds

Add brightness control by changing the current supplied
to leds in manual mode.

CRs-fixed: 539440
Change-Id: I3170e0edb2e5a963ee006923cb6d80172290bc88
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
Merge "input: synaptics_i2c_rmi4: Release touch data before suspend."