Asoc:msm8974:Add analog microphones support

Liquid platform contains additional two analog microphones for
ultrasound purpose.

Change-Id: I1a7771767d6f42da97812237864bf87385f9c458
Signed-off-by: Tanya Finkel <tfinkel@codeaurora.org>
arm/dt: 8974: configure mpp2 PM8841 DOCK_PLUG_DET

liquid device extension consist docking station. DOCK_PLUG_DET interrupt
generated when liquid is plugged and docking speakers plugged in
the docking station line out.

Change-Id: I29a6647b4eb6f52ab8efcaacd2e145cb43457b2c
Signed-off-by: Tanya Finkel <tfinkel@codeaurora.org>
arm/dt: 8974-liquid: Update configuration of the microphones

Add support for the AMIC1 and two additional microphones (AMIC5/AMIC6)
specific to liquid. update mic biases configurations for
digital microphones.

Change-Id: I01a5f6a3b6ed2adc5e663b1dcb06e01648ab46da
Signed-off-by: Tanya Finkel <tfinkel@codeaurora.org>
leds: leds-qpnp: add support for leds delayed turn off

In case a led is turned on by default, add an option to set the amount of
time in milliseconds before turn off.

Change-Id: I983c7c0e8091e57d512a5656152dc14dd86774bb
Signed-off-by: Asaf Penso <apenso@codeaurora.org>
arm/dt: msm8974-liquid: add support for blue led

In LiQUID8974 platform turn on the blue led upon booting for one second
as a boot indication.

Change-Id: Ib790b21f07cd51a9c1617396ba0aeedba6cf07d6
Signed-off-by: Asaf Penso <apenso@codeaurora.org>
msm: kgsl: Don't wake up gpu on kgsl_ioctl calls if not necessary

The current code wakes up gpu on all kgsl_ioctl() calls that need
to hold device->mutex. However there are some kgsl_ioctl() calls that
don't need that. That fix introduces a bit of info to mark such
functions, and don't wake up gpu calling them to save some power.

CRs-Fixed: 438932
Change-Id: Iee3db5401bdad1808a09d104e0daecfc3716cbb4
Signed-off-by: Vladimir Razgulin <vrazguli@codeaurora.org>
tty: n_smux: Mask power collapse support

If power-collapse is supported locally, then SMUX will always set the
power-collapse supported flag in an OPEN ACK which may cause confusion
for the remote side.

Mask power-collapse enabled with the value in the remote open
acknowledge message.

CRs-Fixed: 443770
Change-Id: I8ceb753e25a53d13fa5b5288457e8b1993452a18
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
msm: lpm_levels: Device tree property for detectability of IRQs

At certain system low power modes, GIC and GPIO interrupt controllers
are not functional. Add a device tree propery to indicate availability
of interrupt controllers for the different low power modes. The low
power driver uses this property to disallow any mode based on enabled
interrupts.

Change-Id: Ie1647dc35b0ce5e531bc4cd77d227507b7087b33
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
msm: 8974: MHL Scratchpad interface implementation

MHL Scratchpad provides an interface for
the MHL peer devices to communicate with each other
Each device shall provide a sixteen
byte writeable memory space to its peer.
This change implements the scratchpad read and write
interfaces for MHL Tx chipset.

Change-Id: Ifaaa2e799424514ec68c8e4c7434f95a68261fe1
Signed-off-by: Manoj Rao <manojraj@codeaurora.org>
msm: smp2p: Add __iomem tag to SMEM pointers

All pointers to SMEM should be delcared with the __iomem tag to aid in
static analysis and to indicate to developers that they should use iomem
access functions such as readl() and writel() to access the memory.

Change-Id: If784ea86caa8d95943bec23d6dffb85643981b06
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
msm: smp2p: Handle simultaneous open and update events

If an SMP2P entry is changed while version negotiation is ongoing, then
only an OPEN event will be sent instead of the expected OPEN event
followed by an UPDATE event.

Modify the code to always send an OPEN event followed by an update event
for this case.

Change-Id: Ideba72346d40679eab3c21da4ae24d26f0dfaace
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
msm: mdss: Send current times as vsync timestamp

In case of a timeout while waiting for vsync completion
send the current timestamp.

Change-Id: Ifeeeac0b478138f0d9a989a399d3b6f00d200328
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
msm: mdss: ensure minimum bandwidth is allocated for dsi commands

DSI commands are read from memory through bus. In order to send DSI
commands including power on, need to allocate minimum bandwidth request
to turn on the bus clock.

CRs-Fixed: 443422
Change-Id: I56b1c1c34aebadb19255bcc3a89f3a33271db13a
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
staging: android: lowmemorykiller: Reduce debug_level to 1

Under certain circumstances, such as after the lowmemorykiller
has recently killed an application, the logs can get flooded
with "select to kill" messages.

Change-Id: I7ae1de47c77d929e04b99be3432577d4f5fd1b2d
Signed-off-by: Liam Mark <lmark@codeaurora.org>
usb: diag_bridge: Support PID 9079

Add support for PID 0x9079 and also designate device IDs per-PID.
9079, having a device ID of 1, is intended to be able to coexist
with another probed device with device ID 0.

Change-Id: Ib8cc52a9277b0013e098baeaafa6fce1c8498c42
Signed-off-by: Jack Pham <jackp@codeaurora.org>
ARM: DMA: Fix struct page iterator in dma_cache_maint() to work with sparsemem

Subhash Jadavani reported this partial backtrace:
  Now consider this call stack from MMC block driver (this is on the ARMv7
  based board):

  [<c001b50c>] (v7_dma_inv_range+0x30/0x48) from [<c0017b8c>] (dma_cache_maint_page+0x1c4/0x24c)
  [<c0017b8c>] (dma_cache_maint_page+0x1c4/0x24c) from [<c0017c28>] (___dma_page_cpu_to_dev+0x14/0x1c)
  [<c0017c28>] (___dma_page_cpu_to_dev+0x14/0x1c) from [<c0017ff8>] (dma_map_sg+0x3c/0x114)

This is caused by incrementing the struct page pointer, and running off
the end of the sparsemem page array.  Fix this by incrementing by pfn
instead, and convert the pfn to a struct page.

Change-Id: I52966616d710420aa28529ba650e9177dcb0e731
Cc: <stable@vger.kernel.org>
Suggested-by: James Bottomley <JBottomley@Parallels.com>
Tested-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
ASoC: wcd9310: Fix bug to configure compander sample rate

The bit fields for compander sample rate are bits[2:0] so
the mask bits should be 0x07 instead of 0x03. Update the
driver code to fix the bug.

Change-Id: I5c15eba2539a43fd104ecb81a726239e0c521100
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>
arm/dt: msm8610: Add support to boot the Pronto (WCNSS) subsystem

Add the device entry that will allow the PIL Pronto
driver that can bring the Pronto processor out of
reset or shut it down.

Change-Id: Ie0d1da8cbef5bdef3556b87958ec5bcf60a0e488
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
arm/dt: 8610: Add mem hole info to device tree

Update device tree with the start and size of the memory hole
to be removed by the kernel.

Change-Id: Ia483b0efb08579bc0e79e438c7c4238efb4b2a35
Signed-off-by: Neeti Desai <neetid@codeaurora.org>
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
msm: kgsl: Add context reference counting to KGSL events

Add reference counting to all KGSL events since they are dependent
on the context.  This avoids a race condition where the context
could be destroyed while the events are being processed during cleanup.

CRs-fixed: 438134
Change-Id: Ic2cd484d441e4c392ab63b0a0131accaceafc711
Signed-off-by: Carter Cooper <ccooper@codeaurora.org>