diag: dci: Preventing unitialized stack memcpy operation

At certain point in diag driver there can be memcpy operation
for the unintialized stack. Due to uninitilization of memory
user can obatin valuable information on accessing this stack
in userspace. This patch fixes that issue.

Change-Id: I4bfcf156300132dc426dcadce325e0c76c1d0357
CRs-fixed: 565808
Signed-off-by: Katish Paran <kparan@codeaurora.org>
gpiomux-8974: Modify direction of suspended GPIO

changed the direction and strength for some below mentioned GPIOs
as per 8974 suggested GPIO settings in Rockbottom.
With new config 0.400-0.500mA been saved on floor in Audio
use case.
Settings are applicable when there is no user to GPIOs
Following are the changes made:
	GPIO# Changed       What Changed
	24                  IN->OUT 8mA->2mA
	46                  IN->OUT 8mA->2mA
	80                  8mA->2mA
	82                  IN->OUT 8mA->2mA
	104                 IN->OUT 8mA->2mA PD->NO PULL
	105                 IN->OUT 8mA->2mA
	106                 IN->OUT 8mA->2mA

Change-Id: Iaedc91b3d696a588e0723ffb495be179c7e0ae6c
Signed-off-by: Tirtha Kanti Ghosh <tirtha@codeaurora.org>
ARM: dts: msm: Disable Venus GDSC collapse for 8974v2.2 and 8974Pro

The sudden current draw occurring when restoring Venus from GDSC
collapse may cause general instability on some platforms. Disable
this feature by default.

CRs-Fixed: 597489
Change-Id: I4e62b913d0206063547ad59ccd8029aa1c5aee16
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
ASoC: msm: DTS parameter validation

Validate the modelIdLength before proceeding and copying
the user data.

Change-Id: I659d83376cc893340851d6889019a82d169b2134
Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
Signed-off-by: Anish Kumar <kanish@codeaurora.org>
ASoC: msm: qdsp6v2: Increase the DSP response timeout

Due to updates in the Fluence V5 algorithm, the initialization
sequence for Fluence V5 takes longer than 200ms. Voice driver
has a timeout of 200ms for DSP response. Increase the timeout
to 300msec to prevent voice call failures.

CRs-Fixed: 595881
Change-Id: I755dd13b796dbf9e0213a09b2925b1fc896b1e70
Signed-off-by: Deepa Madiregama <dmadireg@codeaurora.org>
Revert "ARM: dts: msm: change emmc clock line drive strength"

This reverts commit 1da6b37497a7a80323994be13eacb0d439e47154.
This change caused regression that was fixed by commit
644bc429bce7e109475701a5f49477b97a8811ae "ARM: dts: msm: Reduce drive
strength on SDC1 clk for MSM8974Pro AB MTP" which reduced the drive
strength to 10mA addressing data corruptions. This commit was introduced
to address potential CRC issues that could rise due to the low drive
strength. This isssue will be revisted if there are any CRC errors
reported later on.
Update copyright year.

CRs-Fixed: 600184
Change-Id: I767f9fade577e2b7865bc3d78adf830f14bdb77a
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
Merge "devfreq: governor_cpubw_hwmon: Remove sample_ms and fix round up of freq"
Merge "msm: mdss: add iommu attach in bus bandwidth control request"
Merge "msm: kgsl: Ensure signals do not cause waits to end early"
Merge "msm: kgsl: Panic if global timestamp wait fails in context detach"
Merge "msm: audio: qdsp6v2: disable read interrupts for smd channels"
msm: sps: use a new flag for disconnecting pipe

Use a new flag to indicate if BAM client has decided to disconnect
a pipe so that we can avoid BAM IRQ handling for a disconnected
pipe.

Change-Id: I1d1e467cf7366f0b00b32674117d381432611e26
Signed-off-by: Yan He <yanhe@codeaurora.org>
fat: limit the number of error prints

Use fat_fs_error_ratelimit instead of fat_fs_error so as to
avoid large number of prints.

Change-Id: I2e21e6bd0c8e7e79d3ced9c213668c405fd6260d
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
Signed-off-by: Manish Kumar <manishku@codeaurora.org>
sched,cgroup: Fix up task_groups list

With multiple instances of task_groups, for_each_rt_rq() is a noop,
no task groups having been added to the rt.c list instance.  This
renders __enable/disable_runtime() and print_rt_stats() noop, the
user (non) visible effect being that rt task groups are missing in
/proc/sched_debug.

Change-Id: Ib337ebda0e752f838d787c03fe1b0a8f03ea0551
Signed-off-by: Mike Galbraith <efault@gmx.de>
Cc: stable@kernel.org # v3.3+
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1344308413.6846.7.camel@marge.simpson.net
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Git-commit: 35cf4e50b16331def6cfcbee11e49270b6db07f5
Git-repo: git://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
sched: convert WARN_ON() to printk_sched() in try_to_wake_up_local()

try_to_wake_up_local() is called with the rq lock held. Printing to
console in this context can result in a deadlock if klogd needs to
be woken up. Print to the kernel log buffer via printk_sched()
instead which avoids the wakeup.

Change-Id: Ia07baea3cb7e0b158545207fdbbb866203256d3c
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
Merge "ASoC: msm: DTS parameter validation"
msm: Add 16 bit PCM as default format for  backend

Add 16 bit PCM as default format for backend. This sets
backend tx format to be 16 bit pcm in case of tunnel mode playback

CRs-Fixed: 593469
Change-Id: Ie686a8e7d2c496f67bbf2a29ba2640037f95e08f
Signed-off-by: Yeleswarapu, Nagaradhesh <nagaradh@codeaurora.org>
Merge "diag: dci: Preventing unitialized stack memcpy operation"
msm: kgsl: Change the pagefault policy immediately

When changing the pagefault policy the MMU setting for the pagefault
policy was not changed, add code to do that.

Conflicts:
	drivers/gpu/msm/adreno.c

Change-Id: I3b185a7f6bdda42856c777c60ae82c32b9c52eb9
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
Merge "msm: Add 16 bit PCM as default format for  backend"