ata: ahci: MSM AHCI controller driver

The MSM AHCI controller driver enables AHCI interface
on Qualcomm SoC and plugs with Linux AHCI driver to
provide platform specific services. Add documentation
for msm ahci driver.

Change-Id: I3d508e6f9c4f15506541df4000bd9372d516c098
Signed-off-by: Sujit Reddy Thumma <sthumma@codeaurora.org>
ASoC: msm8974: support amplifier for speaker path

In Liquid 8974, the speaker path is intended for the ultrasound emitter.
For right functionality of the speaker path, control of its amplifier
is required.

Change-Id: I0a54ed72bcc41dd626d18dd2cc550cdaa48f88dd
Signed-off-by: Baruch Eruchimovitch <baruche@codeaurora.org>
arm/dt: msm8974: support amplifier for speaker path

In Liquid 8974, the speaker path is intended for the ultrasound emitter.
Update audio routing node and configure speaker amplifier
gpio to support ultrasound.

Signed-off-by: Baruch Eruchimovitch <baruche@codeaurora.org>
Change-Id: I3f40738652d5fc6b6e67e9fb028139907683fd48
gpu: ion: fix kfree/list_del order

With CONFIG_SLUB_DEBUG_ON it would panic during
ion_alloc()
 ion_buffer_create()
   io_heap_drain_freelist()

Change-Id: I2a05c298e3941a1d5d0fa4ef33de208a818744bb
Signed-off-by: JP Abgrall <jpa@google.com>
Git-commit: ba6e9571a83c35eff6301bfae3471ce8e9cc7666
Git-repo: https://android.googlesource.com/kernel/common
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
msm: camera_v2: Post fd close event to user space.

Post the stream destroy event to back-end even if the last
fd is being closed. This is required because when the mediaserver
crashes, the fds are closed in no particular order.

Change-Id: Ie6098f9aa2b9090d9901684998a8ab3a332d4805
Signed-off-by: Ankit Premrajka <ankitp@codeaurora.org>
arm/dt: msm8x10: Add FIQ register

This change also adds a DT entry for FIQ register used by WCNSS platform
driver.

Change-Id: I6d3eaa581fd6b5fdc15e23e0c54a367da80aa127
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
input: synaptics_i2c_rmi4: Add low power mode

Enable regulators to go into low power mode when
device enters suspend, to save power.  In resume,
return regulators to full power.

Change-Id: I6f5a6d398732b2e23aeba81b3569ae2c081f31e5
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
arm/dt: msm8974: Increase the MM region size

The MM region needs to be larger to support different use
cases. Increase the size to 252 MB.

Change-Id: I7903f343b458da4ea79111180855c01dbe6b1d03
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
msm: rpm-log: fix trivial input checks in rpm_log_file_read

Modify the Comparison of unsigned value against 0 as it is
always false.

Change-Id: I602c1210bbf1cc2e9a09f97a682d946e325d04c7
Signed-off-by: Anji Jonnala <anjir@codeaurora.org>
mdss: display: do not enable dsi irq from dsi host init

Dsi irq is enabled at beginning of transaction and disabled at
end of transaction. There is no need to enable dsi irq at
initialization time.

Change-Id: Ie4ffbbae6e3d8234714a51555ec95ce3678862cc
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
mdss: display: TE logic to support 60 fps command mode

To achieve 60 fps when TE enabled, dsi link needs to be able
to support around 70 fps so that there is some margin to
compensate for kickoff overhead. In addition to that, TE logic
need to avoid mdp throttling as much as possible. This patch
re-work TE logic base on the fact that write speed is faster
than read speed to avoid mdp throttling.

CRs-fixed: 476441
Change-Id: Ib56228f83c833cb0999c32be05c057370ed24ad0
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
msm: Kconfig: krypton: update phys offset

Update the phys offset for MSM KRYPTON according to
the latest memory map.

Change-Id: Iace7c108c9ecb6cafa9c01c3845d3c37f84d5c39
Signed-off-by: Abhimanyu Kapur <abhimany@codeaurora.org>
msm: mdss: unstage pipe only if it was ever staged

Check if pipe was staged in the mixer it's being unstaged from, before
actually unstaging and updating mixer configuration. Also, if the pipe
is being unstaged due to problems in configuration it needs to remain
unstaged in subsequent calls by clearing params_changed flag.

Change-Id: I4144a9f9d148241b83535e07ca55cdc0c9fcc4e5
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
msm: camera: Fix for dual ISP buffer management

Return -1 when there is no free buffer for dual ISP use case,
in order to have proper error handling in isp driver..

Change-Id: Ic3f3261bebe192fdcf62a1d06f4e8a1e6033ef61
Signed-off-by: Kevin Chan <ktchan@codeaurora.org>
arm/dt: msm8226: Set IRQ ONESHOT flag

Irq ONESHOT flag is not active by being set in "interrupts"
dt setting.  It must be passed into request_threaded_irq,
so set appropriate flags in irq-gpio.

Change-Id: I3ea4a3d6612bad7fa1b3a1df88419f4dde5c884b
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
msm: krait-regulator: add PWM mode settling time

A settling time of 50 us is needed when switching from PFM mode
to PWM mode. Phase settling time needs to be 50 us too.

CRs-Fixed: 479580
Change-Id: Ieb6ff7536dabe4ad02cc6724719a0aadd77a5068
Signed-off-by: Willie Ruan <wruan@codeaurora.org>
msm: mdss: reset intf number from control path

Interface number is not properly reset when control path is changed
between writeback and interface. This gives incorrect information in
debug statistics.

Change-Id: I7816548791a9ed6058cbf0b3fd5484ed025c74f6
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
arm/dt: apq8084: Add SDC1 and SDC2 devices

Add device tree entries for SDC1 and SDC2 devices
(only PIO mode is supported).

Change-Id: I1e94bb5be531bde15813b70d40caa06c91242da5
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
board: apq8084: Add msm_sdcc auxdata mapping

Add the traditional msm_sdcc name mapping for SDCC
via OF auxdata.  The msm_sdcc names are used by
Android to differentiate between primary and
secondary SDCC.

Change-Id: Idaa7307d7480e2c15908d3ca48679caa5f041eb6
Signed-off-by: David Ng <dave@codeaurora.org>
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
board-8084: Add dummy clock support for SDCC

Add dummy clock to fake clk_get/clk_put API's until full
support is available.

Change-Id: Ic6842e12e91a405a5eb818d37834c25df91f8b18
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>