Revert "ASoC: wcd9304: Include all registers to debugfs dump."

This reverts commit 06488d1ac50cf342af4a0fd74d9365029eb154f5.

Change-Id: Iaf0a62ebf95d9b57ea1d1fefbae497993cb67d9f
android: lowmemorykiller: add lmk parameters tunning code.

There are cases that LMK doesn't run, even when it must run.
It is due to LMK shrinker not considering memory status per zone.
So add LMK parameters(other_free, other_file) tunnig code to
consider target zone of LMK shrinker.

Change-Id: I6f1f8660d5da920a0e3af45a160499965032081d
Add heap_mask to ion_allocation_data

Change-Id: I928e912fadc9bdb8fe8c1215c08e62d13902d53c
hdmi: able to build kernel without hdmi feature

If not using HDMI, compiling errors occur. it's fixes to build
kernel without HDMI feature

Change-Id: Ida5babdc2f8ebaf73cd5c52b3f4686b27f6f1aa1
hw_breakpoint.c: fix unused variable warning

Change-Id: I998828bd37007cdf3dd7991f23d777c120883118
Signed-off-by: Iliyan Malchev <malchev@google.com>
msm: ramdump: fix duplicated sysfs ramdump

subsystem creates sysfs for ramdump. In some cases, it tries to create
same name sysfs which is created previously in other subsystem. To fix
duplicated sysfs, if sysfs is already existed when creating ramdump node,
return previous device handle but not create new sysfs.

Change-Id: I1aa020aa50ec487a1d3041f3d6e24366988f0289
msm_fb: clean fb to prevent displaying old fb

clean fb to prevent displaying old fb on resume.

Change-Id: Iab169e7a36b6bd168631bbf9763319ba4388f82d
hdmi: audio: fix up typo on hdmi audio

Change-Id: I27257bdd57f0665dd76f267fbf2503e8b73716cd
persistent_ram: check PERSISTENT_RAM_SIG before writing

if the PERSISTENT_RAM_SIG was corrupted, do not write something
to the persistent_ram buffer. this may cause the abnormal crash.

Change-Id: Ibd3082f7abeaa0e2e4b8f5022360977ec29add6f
display: removed the code exhausts file descriptor in mdp overlay and rotator.

Fix the problem crashed while playing video clips and VT camera test.
ion_share_dma_buf is called in pr_debug.
So, it is called depends on build option and makes crash problem.

Change-Id: Idaf4bc934bb531e8b4fc5e7f5d1db87328363fbf
msm: pm-8x60: fix timeout bug issue in suspend processing

if msm_rpm_request is not NULL, it is not expected to enter the
power collapse of CPU0. msm_rpm_local_request_is_outstanding is
check if msm_rpm_request is NULL or not. this check routine is
added to msm_pm_idle_prepare for fix timeout issue in suspend
processing.

Change-Id: I02cb344e451a0893f4c8dce88d0a564d55839f01
msm: mdp: Fix reserved field usage

An earlier commit(ec5b2f)increased the number of reserved fields
in the kernel standard fb.h header changing the struct size.
This caused issues with userland applications using the corresponding
bionic header. This patch revert the earlier increas in size
and makes corresponding adjustments to the reserved field usage.
A follow up patch will remove usage of reserved fields entirely.

Change-Id: I3ae4a49b607a7fc57297c4a1ab123b54648dc99d
mdp: Fix incorrect reserved[3] usage

Change-Id: I036f1f9d707fd17bf208c9ae074b7fb6b39164dd
PM / Sleep: Prevent waiting forever on asynchronous suspend after abort

commit 1f758b23177d588a71b96ad02990e715949bb82f upstream.

__device_suspend() must always send a completion. Otherwise, parent
devices will wait forever.

Commit 1e2ef05b, "PM: Limit race conditions between runtime PM and
system sleep (v2)", introduced a regression by short-circuiting the
complete_all() for certain error cases.

This patch fixes the bug by always signalling a completion.

Addresses http://crosbug.com/31972

Tested by injecting an abort.

Change-Id: I1402360f8af760cfdf66f8830bd8db4b1b676c47
Signed-off-by: Mandeep Singh Baines <msb@chromium.org>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
legacy_ion.h: a backwards-compatibility copy of ion.h

cloned from include/linux/ion.h at:

commit b6b0b65325e6f5eb5fcfd88d270f710d947f7962
Author: Brian Muramatsu <btmura@google.com>
Date:   Mon Jul 30 22:54:08 2012 -0700

    Add heap_mask to ion_allocation_data

Change-Id: I524bb31a93a9f7b286b34bc6f21c4103c31ad9b1
Signed-off-by: Iliyan Malchev <malchev@google.com>
msm_ion.h: switch to using legacy_ion.h

Change-Id: I74ef842c08d901e381360064bab9eb67f1d023df
Signed-off-by: Iliyan Malchev <malchev@google.com>
gpu: ion: Add compatibility with future changes

Several changes are pending to be pulled in which are
not compatible with our changes. Specifically, a new
field to the allocation ioctl is added and the ioctl
numbers for cache flushing need to be changed.
Add these changes now until full changes can be pulled
in the future.

Change-Id: I9540495e25c7b6c414a6e3719f66f2cd9f78c585
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
Signed-off-by: Ajay Dudani <adudani@codeaurora.org>
audio: remove handset pop-noise

When receiver opens immediately after it is  closed, the pop-noise occurs.

Change-Id: I8e5374edea9f8710963b7669e64b109db2354650
vidc: Add secure node support for encoder.

Encoder driver will expose a new node for clients
intending to start a secure encoding session.

Change-Id: I2a104155fd19534a3b3b35e6606d39047f34c42f
Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
vidc: Correct start and stop sequence.

Video core stop should be called only if start is successful.

Change-Id: Ie2a8d970355387ee3fcdc34b62184972e89dd6cc
Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>