Revert "lzo: properly check for overruns"

This reverts commit f746134699a5efdf87f612e7eb389e253981e6c0.
Revert "lib/lzo: huge LZO decompression speedup on ARM by using unaligned access"

This reverts commit 59bc4f9fa67f79b7b810acd269cdcf35b4e27a4e.
Revert "lib/lzo: Update LZO compression to current upstream version"

This reverts commit fd25fc609a78a6142c1309ae99b365fdabce7116.
Revert "lib/lzo: Rename lzo1x_decompress.c to lzo1x_decompress_safe.c"

This reverts commit 1cfe07cec32d33b0f51c010ca0ecdb0ba6753f67.
Revert "ARM: 7583/1: decompressor: Enable unaligned memory access for v6 and above"

This reverts commit 703b7ff64c28c8d14abe4b6a74a449873ea173a9.
Revert "ARM: 7493/1: use generic unaligned.h"

This reverts commit 37942dc64c1a97fa0b6d5a1d70cd867cfc29107a.
kernel: Remove check for user in register dump.

Change-Id: I90e7111a0f809aac1715af2dd25b952b940ecaba
msm: dma: Refactored driver to avoid queuing of cmds in workq.

Highlights of the changes are:
1. A workqueue is used to configure ADM only when
   the clocks need to be prepared & enabled.
   A function call is used to configure ADM in
   cases where the ADM driver is invoked for data
   transfer when the clock is already prepared &
   enabled.
2. Replaced threaded irqs with hard irqs.

Change-Id: Ifaa5efdde8150f932a12d4f9eeccfb36ecb8f88f
Acked-by: John Nicholas <jnichola@qti.qualcomm.com>
Signed-off-by: Venkatesh Yadav Abbarapu <quicvenkat@codeaurora.org>
Fix some compiler warnings.

Change-Id: Iad45b89e96e660b980ccad21abf609d26ac26b98
fbmem: Bring inline with upstream.

Change-Id: If26ce9e7d6b42a58677fa4e459eade5a6517ca07
msm: clock-8974: Reduce PLL lock time

Current PLL locking sequence is taking minimum time of 4.6 msec.
For command mode panels, PLL will be disabled on system idle
screen and enabled back on first update. Very first display update
after idle screen is taking long time due to PLL locking sequence.
We need to optimize PLL lock time for better user experience.

Update to upstream.

Change-Id: I1604d4544a3b33ed668ae6f36d19a876c2923e0c
Signed-off-by: Shalabh Jain <shalabhj@codeaurora.org>
Signed-off-by: Sree Sesha Aravind Vadrevu <svadrevu@codeaurora.org>
msm: krait-regulator: handle efuse differences

Scaling factor version is valid for
- 8974 based devices when the version bits read 1
- 8974pro based devices when the version bits read 1 or 2
- 8084 based devices when the version bits read 0
- 8092 based devices when the version bits read 0

Moreover the three bit scaling factor data for
- 8974 based devices starts at bit 16
- 8974pro based devices starts at bit 16
- 8084 based devices starts at bit 14
- 8092 based devices starts at bit 14

Update the code to handle these differences.

CRs-Fixed: 614657
Change-Id: I30c65026341ece9a03f88514127b563417df46ee
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
scm: Don't panic.

Change-Id: I6bc8d304c40d22bf7ec753ad3593c30a48ccc9e0
msm: msm_bus: Fix inadvertent stomp on BKE_EN register

While setting the QoS mode of fixed mode masters bad masking
operations is causing accidental stomp on the upper nibble of the
BKE_EN register.

Change-Id: I5675e1dbc6fd5a01faac49c903e12a9c95e32254
Signed-off-by: Girish Mahadevan <girishm@codeaurora.org>
msm_bus: Don't free others memory.

Change-Id: Idcd925a7714b2830b87dd231cedab64865d0000e
ARM: msm: Clean up sensor ADSP driver; OCMEM is no longer used

OCMEM is no longer used, hence, removing OCMEM related code from the
ADSP driver.

Change-Id: I2657923d02c462380c8d57a47493d93f073a566a
Acked-by: Kevin Smith <smithk@qti.qualcomm.com>
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
msm: qdsp6v2: Increase max ports in APR

Increase the maximum ports in APR. Some Apps may support
multiple clients which exceeds the number of clients
supported in APR. This change increases number of ports
used in APR upto 8 sessions.

Change-Id: I06624330845681b4414dd470ab7aed669d690ba0
Signed-off-by: Aravind Kumar <akumark@codeaurora.org>
msm: kgsl: Remove io_fraction as it is no longer used

io_fraction was originally used as a way to influence the CPU
frequency governor.  Due to governor updates and timing changes
no targets use io_fraction now and there is no plan to do so in
the future.

Change-Id: Ib2739393d83a197d18d4446e6afcb889196f479b
Signed-off-by: Lucille Sylvester <lsylvest@codeaurora.org>

Conflicts:
	arch/arm/boot/dts/msm8974pro.dtsi
Revert "msm: kgsl: Add ratelimit check to limit excessive kernel logging"

This reverts commit 557a78420e5155533de472dfc22f3870ceaa41f8.
Revert "msm: kgsl: Read fault register on ringbuffer h/w fault"

This reverts commit 64ab3eec4493532ff08ad1026b13270fa523e49b.