msm: adsprpc: include msm-specific ion header file

Due to a recent upgrade to the ion framework, all ion clients that are
using msm-specific ion features (such as ION_AUDIO_HEAP_ID) should be
using linux/msm_ion.h instead of linux/ion.h.

Change-Id: I90cd2cefa3a55c039f9cdd20c45503c47a0145eb
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
Signed-off-by: Ram Kumar Chakravarthy Chebathini <rcheba@codeaurora.org>
msm: adsprpc: Incorporate coding style comments

Remove goto statements to bail out from inside the macro
and unnecessary defines. Cleanup on module init failure.

Change-Id: I01885a9fa37283d77e1b6735decd2f639ae4d4b3
Acked-by: Sathish Ambley <sambley@qualcomm.com>
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
Signed-off-by: Ram Kumar Chakravarthy Chebathini <rcheba@codeaurora.org>
msm: Move adsprpc into drivers

Move RPC driver that allows for clients to make remote
invocation calls between apps and adsp into drivers.

Change-Id: I045da6163968066c954f448572c94a133181e1f4
Acked-by: Sathish Ambley <sambley@qualcomm.com>
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
Signed-off-by: Ram Kumar Chakravarthy Chebathini <rcheba@codeaurora.org>
msm: adsprpc: Update to retrieve the physical address for ION buffer

Use follow_pfn() to obtain the physical address of ION carve
out buffers instead of directly referencing them from vma
structure.

Change-Id: I4c144a25bc579c77fefebe43f8d4d0a9bb568bfe
Acked-by: Sathish Ambley <sambley@qualcomm.com>
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
Signed-off-by: Ram Kumar Chakravarthy Chebathini <rcheba@codeaurora.org>
msm: adsprpc: Allow zero length buffer

Initialize the arguments being passed to account for zero
length buffer being passed and not invoke flush routines
in these cases.

Change-Id: Ic6b3418f05ea3ca46e7ca758ebbd0a7bda987b51
Acked-by: Sathish Ambley <sambley@qualcomm.com>
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
Signed-off-by: Ram Kumar Chakravarthy Chebathini <rcheba@codeaurora.org>
msm_serial_hs: consider flush buffer request only when DMA is in progress

TTY Core uses flush_buffer to clear out any output data before closing
port, whereas UART application can always request to do flush output data
before starting data transfer using tty supported ioctl().
receive_tty_flush is used to make decision on completion of any DMA Tx
data transfer. Using same approach when there is no DMA Tx transfer is
happening, it is breaking next DMA Tx transfer functionality. Hence
update receive_tty_flush only when there is any DMA TX transfer active.

(cherry picked from commit 53069734628ebce341cf1ef778c91dbcbbcf67db)

Change-Id: I26f4ceece422674e1f7647e5dfadb476cec1ef92
CRs-Fixed: 438057
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
msm: subsystem_restart: Use a CPU intensive workqueue for SSR

Using the default workqueue settings can result in the SSR
work item blocking the watchdog petting function. To avoid
this, schedule the SSR work on a workqueue that has the
WQ_CPU_INTENSIVE flag set. This will prevent any work item
posted to the workqueue from blocking other work items
posted by other drivers in the system, including the watchdog
pet work item.

Change-Id: I159f8c5aba9ff3b40f61bdb101f266436bd2c9bc
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
msm: subsystem_restart: Remove customer specific code

Delete customer specific code in the subsystem restart
driver.

Change-Id: I6654e986dd67f0f578a71c88a142c565985f5183
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
Revert "mako: debug: disable lge_crash_handler"

This reverts commit 04e394381f9ec925d203c541d6dd02c55bae45a3.

Change-Id: I5711385d009b49504e23e592f8e8fdc68261d82c
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
msm: subsystem_restart: Panic on SSR errors

Don't just warn when SSR operations such as powerup
or shutdown fail. Panic the device so that failure-point
analysis is possible.

Change-Id: I09a5ca37d8a7cfaa8fd7ed7025711c6467c20e84
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
diag: Add support for APQ8064AA variant.

Add check for APQ8064AA variant in diag.

Change-Id: I1252618a0fbb409bcf850a26d0d1f9df712d9e73
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
msm: kgsl: Use the correct units for ADRENO_IDLE_TIMEOUT

In a few spots the ADRENO_IDLE_TIMEOUT value (measured in milliseconds)
was used directly for jiffy calculations resulting in timeouts that were
1000/HZ times longer than they should have been.  Use msecs_to_jiffies
for these situations.

CRs-Fixed: 448226
Change-Id: Ic0dedbad33630706d909931bf616bd69399f7ff1
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Merge "msm_fb:display: correct bus bw for downscale case"
Merge "msm_fb: Calibration config API"
Merge "mmc: msm_sdcc: Reset SDCC controller if check for Tx/Rx active fails"
Merge "mmc: msm_sdcc: don't perform busy wait for CMD13 (status command)"
Merge "gpio: pm8xxx-gpio: change the license header from CAF to LF"
Merge "event_timer: Add spinlock protection to event time update"
Merge "media: dvb: mpq: Extend TSPPv1 plugin PID filtering capabilities"
Merge "media: dvb: mpq: Fix race-condition in mutex locking"