diag: Add DIAG support for SGLTE

For Fusion2.2(SGLTE), 8960 and QSC will interact over SMUX
interface. This change adds support for this new interface.

Change-Id: I50f537f52422803559cb8083d1ac9c19d22dd889
Signed-off-by: Shalabh Jain <shalabhj@codeaurora.org>
marimba-tsadc: Move to new clk_prepare/unprepare API.

The MSM clock driver is moving to the upstream prepare/unprepare
APIs. Use these new set of APIs instead of the current
enable/disable APIs.

Change-Id: Ib3ca1050d9002d92a4d719984cc61a0ea29f8930
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
board-msm7x30: display: Add writeback memory

Add memory to support overlay writeback

CRs-Fixed: 313524
Change-Id: Ia20a939e0a3021d4e1677e54aa63b278aa2403de
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
Signed-off-by: Mayank Chopra <makchopra@codeaurora.org>
msm: qdsp6v2: Upgrade qdsp6v2 audio driver code to use new clock API

- Replace existing clock APIs in qdsp6v2 audio driver code with
  new APIs.

CRs-Fixed: 365817
Change-Id: I732f14e2a1d4a2bd178c0dd552e5e1e493d3e5eb
Signed-off-by: Karthik Reddy Katta <akkatta@codeaurora.org>
msm: ultrasound: multi input devices support.

User space based UI framework enables additional configuration
of input devices  along with configuration in the proper kernel drivers.
To use this capability in the ultrasound framework,
the USF driver should simulate multiple input devices:
one device for each input event type.

Change-Id: Idd6aad0814ea57796ab789758fd28ae46d6e9d8a
Signed-off-by: Baruch Eruchimovitch <baruche@codeaurora.org>
vidc: Modify shift value for extended PAR width.

Currently extended pixel aspect ratio register shift
value for width is 15. Due to this the actual width
value returned by core is getting doubled while
sending to user space. Now correct values are returned
by modifying the shift value to 16.

CRs-fixed: 362985
Change-Id: I996bfc79b327492a791017fd5b33638f82240d76
Signed-off-by: Rajeshwar Kurapaty <rkurapat@codeaurora.org>
msm: camera: Fix for exposure gain in ov5647

Initialize max_line to zero instead of 984 to allow
the code execution if the line count is less than 980
and max line count is greater than 984.

similar change is done for snapshot exposure gain.

Change-Id: Ic3e68ccf27cf05a71eacc9b7409b7ebe81190eee
Signed-off-by: Suresh Vankadara <svankada@codeaurora.org>
Revert "msm: iommu: Enable IO-MMU support for 8660"

This reverts commit 313c9f6a9a0831fd19ec490419be46a84707f8d8.

Change-Id: I98de286c004b1c6ab597ff6766fe145034ad3d62
Signed-off-by: Chintan Pandya <cpandya@codeaurora.org>
msm_fb: display: add writeback mode for mddi on 7x30

Add support for BLT mode in the MDP4.0 overlay architecture while
downscaling to more than half of the source dimensions to avoid
underrun issues.

CRs-Fixed: 313524
Change-Id: I3ead5329edbef36697c26d55e6cf8d8cd316fdbc
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
Signed-off-by: Mayank Chopra <makchopra@codeaurora.org>
defconfig: enable writeback for 7x30

Update defconfig with writeback configuration enabled for 7x30

CRs-Fixed: 313524
Change-Id: Id99214bf1468f425bb5bae8cd00f9fcb03b9b41d
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
Signed-off-by: Mayank Chopra <makchopra@codeaurora.org>
msm: pm-boot: Fix section mismatch

The function __devinit msm_pm_boot_probe references to the function
__init msm_pm_boot_init. Move msm_pm_boot_init to a matching annotation.

Change-Id: I5fc3bded52d8e9b042235dcef14d763dcd937254
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
spmi: Fix compilation error when CONFIG_PM_RUNTIME is defined

<linux/pm_runtime.h> should be included to fix any compilation errors
associated with enabling the PM_RUNTIME config.

Change-Id: Ided562e1351ccb5eef8957c305060275a5679d42
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
ASoC: WCD9304: Add support for Active Noise Cancellation

Add routing and mixer controls for configuring Active Noise
Cancellation

Change-Id: Iad717bc7c40ea6b4cdbd82cead5c08fae166bd8b
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
ASoC: msm8930: Fix incorrect configuration for analog mic

For 8930 the analog mic are connected to Microphone Bias 2
externally. Fix by routing appropriate microphone bias to
the analog microphones.

Change-Id: If06f1da2525723344ede17c6db5b712c34bfc950
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
tty: n_smux: Add RX workqueue to reduce locking

To prevent multiple RX operations from overlapping, locking is currently
used during the entire RX operation which also includes calling the
client get_rx_buffer callback in atomic context.

To reduce locking, the RX processing has been moved to a single-threaded
workqueue which ensures serialization of the RX operations.  This
minimizes locking requirements and eliminates locking around
get_rx_buffer allowing the client to use GFP_KERNEL instead of
GFP_ATOMIC for memory allocation.

Change-Id: Ib87523191aa77f899fadb7667def58d94579c547
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
tty: n_smux: Update power-collapse-enabled debug message

Only print power-collapse-enabled message when it is first enabled.

Change-Id: I4b645a0eb345f03762fc1e44eaf953511937db56
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
tty: n_smux: Add exponential backoff for RX buffer failures

If a client is unable to allocate a buffer for an incoming packet, the
current software retries once without a delay and then drops the packet.
This causes issues for some clients that use flip buffers for processing
RX data.

This change changes the get_rx_buffer callback failure handling to do an
exponential-backoff retry giving the client time to free up a buffer for
processing.

Change-Id: I3284824a7d5a1d8a03314eebdb4488aaf560440c
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
USB: msm_otg: Don't allow TCXO shutdown in host bus suspend

Currently otg driver is voting to allow TCXO shutdown in host
bus suspend due to which devices connected in system suspend
are not getting detected. Hence don't allow TCXO shutdown in
host bus suspend.

As long term solution, need HW rework for detecting connecting
devices in host mode during system suspend. This is required to
route D+ and D- lines to MPM for monitoring interrupt during
system suspend.

CRs-Fixed: 366111
Change-Id: Ic478a0e327b104eec64b5cfe2bd1f9369f8ef72e
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
msm: 8930: Correct the sd card detect line configuration

SD card detect gpio line should be set to no-pull on this platform for
the card detection to work. Also since the regulator connected to the esd
protection for this line should be always on for the card detection to
work.

CRs-fixed: 362067
Change-Id: I9b4ceb40b95992f8f51b10122766fd27599267ea
Signed-off-by: Krishna Konda <kkonda@codeaurora.org>
mmc: msm_sdcc: allow auto prog done detection

Multiblock write command may not always necessary prefixed with
CMD23 (SET_BLOCK_COUNT) or followed by CMD12 (STOP_TRANSMISSION).

So this patch will enable the auto_prog_done for such multi block
write transfers as well.

CRs-fixed: 365355
Change-Id: I45807840443a09e2aa9bbf8e5dd07a47a77e388b
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>