mako: touch: define a power source for charging info

Define a touch power source and add it as a
supplicant for usb, dc and wireless power suppliers
so that the external_power_changed callback is
called when there is a power supply change.

When there is a power source supplied, touch driver
must set a special bit in the touch controller
so that the touch firmware can use advanced algorithm
to minimize the noise affection.

Change-Id: Idb3fedef87a8f91e2b9d3682fb07f79ee4004251
mako: defconfig: enable touch charger notifier

Change-Id: I19c71f68632a5ce02a96de677ef358d8730e96b2
prima: release v3.2.2.7

	git://codeaurora.org/external/wlan/prima.git

	0ac7a2f wlan: Release 3.2.2.7
	d4715b5 wlan: Enumeration Type Change
	198846e wlan: Fix SSR race condition in device ioctl
	fb6b938 Fix NULL pointer dereference in csrRoamSaveConnectedInfomation
	a162a51 wlan: Memory leak and uninitialized variable.
	756ca40 wlan: Replacing the log with MTRACE
	1fcd4f3 Lock the list in the function pmcDoStartUapsdCallbacks
	262e0bb wlan:Increase CSR_RSN_MAX_AUTH_SUITES to 16
	8eb38b1 Send unicast probe request when AP caps change detected.
	52bfc01 wlan: get_sta_info not working
	d30770c Fix the buffer size in ADDBA response
	7e16a06 Fix to handle IMPS failure crash issue.
	acda87b wlan: Memory leak fix in WDA
	4df3ad0 wlan: Sending NULL TSPEC if send one after another

Signed-off-by: Vineeta Srivastava <vsrivastava@google.com>
ASoC: msm: Change QOS value for low latency path

There were variations in the time taken to
return from each write. This was due
to the delay in switching in and out of
power collapse. To manage this set QOS
value to 1ms so that the core has enough
time to wake up from power collapse

Signed-off-by: Alexy Joseph <alexyj@codeaurora.org>
Signed-off-by: Mekala Natarajan <mekalan@codeaurora.org>
mako_defconfig: enable dynamic debug

Enable dynamic debug to help investigate issue 8684637.

Bug: 8684637

Signed-off-by: Eric Laurent <elaurent@google.com>
msm : camera : Adding a check in msm_open_config to check if camera is active

This check will ensure that if camera is not active, we will not
proceed further into the steps for which mctl needs to be active.

Bug: 8537596
Change-Id: If255c39b2ec17a7eeccd0739be5007db753c3ccb
Signed-off-by: Aditya Jonnalagadda <ajonnala@codeaurora.org>
Signed-off-by: Ajay Dudani <adudani@codeaurora.org>
prima: release v3.2.2.8

	git://codeaurora.org/external/wlan/prima.git

	abf45e1 wlan: Release 3.2.2.8
	a2e6c7c Fix the issue with zero bssid indication when connection is failed.
	2cae715 wlan: assoc rejects and connection failures with ZERO bssid

Signed-off-by: Iliyan Malchev <malchev@google.com>
msm: msm_fb: remove mmio access through mmap

Disable access to mm io and add
appropriate range checks to ensure valid accesses
through framebuffer mmap. This prevents illegal
access into memory.

CRs-Fixed: 474706
Change-Id: If25166f2732433ef967e99c716440030b567aae9
Signed-off-by: Manoj Rao <manojraj@codeaurora.org>

Conflicts:

	drivers/video/msm/msm_fb.c

Signed-off-by: Ajay Dudani <adudani@codeaurora.org>
ASoC: msm: Add size safety check to ACDB driver

Check that the size sent by userspace is not larger
then the internal amount allowed. This protects
against overflowing the stack due to an invalid size.

Change-Id: I4a5b5ca5212bea32b671027d68a66367c5d4c4e7
CRs-fixed: 470222
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
Signed-off-by: Ajay Dudani <adudani@codeaurora.org>
msm: kgsl: Remove extra call to sync_fence_put()

sync_fence_put is called twice and cause NULL pointer dereference.

Change-Id: Ia29e676af28d9040d1ba1ee8669f1306cc8b4035
Signed-off-by: Alex Wong <waiw@codeaurora.org>
Signed-off-by: Sakshi Agrawal <sakshia@codeaurora.org>
msm: mdp: Use a waitqueue for vsync notifications

Use a waitqueue instead of completions and make sure the vsync
show event always returns the timestamp except when it is
interrupted. This simplifies the vsync wait mechanism both here
and in userspace and avoids any unnecessary locking.

Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
perf: Treat attr.config as u64 in perf_swevent_init()

Trinity discovered that we fail to check all 64 bits of
attr.config passed by user space, resulting to out-of-bounds
access of the perf_swevent_enabled array in
sw_perf_event_destroy().

Introduced in commit b0a873ebb ("perf: Register PMU
implementations").

Signed-off-by: Tommi Rantala <tt.rantala@gmail.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: davej@redhat.com
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Link: http://lkml.kernel.org/r/1365882554-30259-1-git-send-email-tt.rantala@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Revert "mako_defconfig: enable dynamic debug"

This reverts commit 274c75d287f718f0a6ba181c01ef5ceb850c5dea.

Signed-off-by: Eric Laurent <elaurent@google.com>
prima: release v3.2.2.10

	git://codeaurora.org/external/wlan/prima.git

	38ad3d3 wlan: Release 3.2.2.10
	984e983 Configure the retry limits using .ini
	a5e5514 Fix the connection latency issue with multiple connect/disconnects.
	1e5111a Revert "wlan: Calculation of beacon interval for MCC STA+GO."
	d67b953 Revert "wlan:Block WiFi Direct GO mode on UNII-1 Band."
	2666ecb wlan: Release 3.2.2.9
	bfabb22 wlan: Calculation of beacon interval for MCC STA+GO.
	218feaa wlan:Block WiFi Direct GO mode on UNII-1 Band.
	2f4c6e6 wlan:Pass correct length for GPS vendor specific IE

Signed-off-by: Iliyan Malchev <malchev@google.com>
msm: mdp: vsync waitqueue for lcdc and dtv interfaces

This is a follow up commit to "msm: mdp: Use a waitqueue for
vsync notification". DTV and LCDC changes were not made on the
earlier commit.

Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
msm: mdp: Wait unconditionally in internal vsync waits

Do not wait for timestamp to change for internal waits as the
waitqueue can be woken up from places where the vsync timestamp
doesn't change.

Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
update net/wireless/db.txt

	http://git.kernel.org/cgit/linux/kernel/git/linville/wireless-regdb.git

	commit bb99560ff69c44c30e47416501639e37014689c3
	Author: John W. Linville <linville@tuxdriver.com>
	Date:   Wed Feb 13 14:36:58 2013 -0500
	    wireless-regdb: update regulatory.bin based on preceding changes.

Signed-off-by: Iliyan Malchev <malchev@google.com>
mako_defconfig: enable CONFIG_CFG80211_INTERNAL_REGDB

Signed-off-by: Iliyan Malchev <malchev@google.com>
prima: release v3.2.2.13

	git://codeaurora.org/external/wlan/prima.git

	6a2d645 wlan: Release 3.2.2.13
	86a42a8 wlan: ActivetoPassiveTimer is not cleard.
	4813a7c wlan: Warning messages while connecting to 5Ghz hidden SSID AP.
	aaf001f wlan: Release 3.2.2.12
	6ecd087 wlan: GO should not follow STA channel if channel is passive.
	ae1566a Fix for Corruption caused by uninitialized memory read in Wi-Fi subsystem
	85c4d4d wlan: Release 3.2.2.11
	df33fd6 wlan: Make Passive channel to Active channel when beacon is received.
	d7805b7 wlan: Pass correct  beacon interval for p2p GO
	656a3db wlan:Block WiFi Direct GO mode on UNII-1 Band.

Signed-off-by: Iliyan Malchev <malchev@google.com>
msm: mdp: Increase base fence timeout

The earlier value of 1 second caused unnecessary warnings on
heavy workloads by the GPU.

Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>