msm: HTC: m4: Update qseecom bus scaling data

Change-Id: I3b6016a05ed76684888270d3adad8422a3797d99
msm: HTC: m7: regenerate defconfig

Change-Id: I1a2e601cbfc728e605270dfda558151349170fa2
drivers: net: wireless: add HTC's bcmdhd_4335_mcc

From m7stockui-3.4.10-gef77362.

Modifications from stock HTC driver:
* Remove poorly commented-out CFLAGS section from Makefile
* Make CONFIG_BCMDHD_4335_MCC select WIRELESS_EXT, WEXT_PRIV
* Fix msm_watchdog.h include in dhd_sdio.c
* Our kernel does not need OLD_CFG_80211; removing this flag also
  required the following fixes in wl_cfg80211.c
  - L292: ifdef out used_default_ssid
  - L6698-6702: ifdef out usage of wl_cfg80211_hostapd_sec()

Changes outside of driver: Make necessary additions (and block with
CONFIG_BCMDHD_4335_MCC where appropriate) in:
* drivers/mmc/host/msm_sdcc.c
* include/linux/ieee80211.h
* include/linux/nl80211.h
* include/linux/wlan_plat.h

Change-Id: I405010d3ae0fc3586de2a2aa3ffaab01909ddcde
msm: HTC: m7: use bcmdhd_4335_mcc wifi driver

Change-Id: I04794a629aebfaddd30c95337b977781b445a236
radio: iris: Expose FM Radio commands and events to user-space

Move the FM command and event structure declarations to separate header
file and include it in FM Radio driver.

Change-Id: Id664eab476240a54a1bc8db656bc9dc95a252bdb
CRs-Fixed: 436286
Signed-off-by: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>
radio-iris: Configure repeat count for PS string

- When FM Rx tuned to a station, not receiving complete PS string.
  SOC is not waiting for complete PS string. it is sending PS event
  even if it has part of PS string as well.
- Added support for setting repeat count for PS string
  to get refined PS string from receiver.

CRs-Fixed: 474719
Change-Id: I71c0c1c8af9488573c05d816c37982f9ed935a87
Signed-off-by: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>
radio: iris: Add the parameter to turn on/off sig blend

FM driver will always enable the sig blend feature, it will cause
FM seperation failure during lab test.So add this new parameter
to disable the feature by adb command to pass the test.

Change-Id: I187d4e5fff4aabfb994a905e174bb8ce941e2c16
Signed-off-by: Sheng Fang <fsheng@codeaurora.org>
radio: iris: Add NULL pointer check

Dereferencing a NULL pointer may cause kernel crash,
Check for NULL pointer before dereferencing

Conflicts:
        drivers/media/radio/radio-iris.c

Change-Id: Ic3368d619d23c76702d95e0f69e41394e423a296
CRs-Fixed: 548404
Signed-off-by: Ayaz Ahmad <aahmad@codeaurora.org>
radio: iris: Bound check user space values

There is no bound check for arguments passed
from user space to kernel space. This may cause
fatal exceptions.

Change-Id: I944e8e5d6e3b12b75df4e6cee7887075237b4411
CRs-Fixed: 546081
Signed-off-by: Ayaz Ahmad <aahmad@codeaurora.org>
radio: iris: Fixed an issue with search stations list.

RDS search, search station list were getting excluded
while checking bounds for allowed search types. Fixed
check to include them.

CRs-fixed: 597996
Change-Id: Ia2d7cc8a1bbf8e861a0e23dfc8ca56181b42b810
Signed-off-by: Satish Kodishala <skodisha@codeaurora.org>
radio: iris: Use #define to declare numerical constants

* Declaring these as actual types causes duplicate symbol problems
  when compiling IRIS as a kernel builtin.

Change-Id: Id180bc196caaa12d0755a9159af9660419558a56
m7 kernel: Add FM radio support

Build IRIS into the kernel for the m7

Change-Id: I38aaeed50e3b6fbba4da8854eba32d759bdb9acc
staging: prima: Merge AU_LINUX_ANDROID_KK_2.7_RB1.04.04.04.007.066

Merge "Merge AU_LINUX_ANDROID_KK_2.7_RB1.04.04.04.007.066 on remote branch"
Merge AU_LINUX_ANDROID_KK_2.7_RB1.04.04.04.007.066 on remote branch
Merge "Merge "wlan: add check for size of cache aligned skb->data""
Merge "wlan: add check for size of cache aligned skb->data"
wlan: add check for size of cache aligned skb->data
Merge "Merge "wlan:Fix kernel panic while TDLS exit.""
Merge "wlan:Fix kernel panic while TDLS exit."
Merge "wlan: do not process HT IE change if RoC is in progress"
wlan:Fix kernel panic while TDLS exit.
Merge "Merge "wlan: Disable TX Async logic.""
Merge "wlan: Disable TX Async logic."
wlan: Disable TX Async logic.
Merge "Merge "wlan: Avoid the race conditon when deauth ind is stuck.""
Merge "wlan: Avoid the race conditon when deauth ind is stuck."
wlan: Avoid the race conditon when deauth ind is stuck.
Merge "Merge "Send response to SME when switch channel fails.""
Merge "Send response to SME when switch channel fails."
Merge "wlan: Fail to load driver if INI file is corrupted"
wlan: Fail to load driver if INI file is corrupted
wlan: do not process HT IE change if RoC is in progress
Send response to SME when switch channel fails.
Merge "Merge "wlan: Fix kernel panic calling ioctl setTrafficMon.""
Merge "wlan: Fix kernel panic calling ioctl setTrafficMon."
Merge "wlan: Fix dangling pAdapter pointer in HDD."
Merge "wlan: Return failure if NV is not proper"
Merge "wlan: Avoid race condition in locking of tx queues per staId."
Merge "wlan: Add NULL check for FTM ioctls."
Merge "wlan: Increase the SSR WAIT time"
wlan: Fix kernel panic calling ioctl setTrafficMon.
wlan: Add NULL check for FTM ioctls.
wlan: Increase the SSR WAIT time
wlan: Fix dangling pAdapter pointer in HDD.

Change-Id: I363cdb920ab83b2b772361b2ed7b7bb61e0c118c
tracing/syscalls: Fix perf syscall tracing when syscall_nr == -1

syscall_get_nr can return -1 in the case that the task is not executing
a system call.

This patch fixes perf_syscall_{enter,exit} to check that the syscall
number is valid before using it as an index into a bitmap.

Link: http://lkml.kernel.org/r/1345137254-7377-1-git-send-email-will.deacon@arm.com

Change-Id: I12f99dea41390b9631f98f925dc1d572aa4fc22d
Cc: Jason Baron <jbaron@redhat.com>
Cc: Wade Farnsworth <wade_farnsworth@mentor.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
tracing/syscalls: Ignore numbers outside NR_syscalls' range

ARM has some private syscalls (for example, set_tls(2)) which lie
outside the range of NR_syscalls.  If any of these are called while
syscall tracing is being performed, out-of-bounds array access will
occur in the ftrace and perf sys_{enter,exit} handlers.

 # trace-cmd record -e raw_syscalls:* true && trace-cmd report
 ...
 true-653   [000]   384.675777: sys_enter:            NR 192 (0, 1000, 3, 4000022, ffffffff, 0)
 true-653   [000]   384.675812: sys_exit:             NR 192 = 1995915264
 true-653   [000]   384.675971: sys_enter:            NR 983045 (76f74480, 76f74000, 76f74b28, 76f74480, 76f76f74, 1)
 true-653   [000]   384.675988: sys_exit:             NR 983045 = 0
 ...

 # trace-cmd record -e syscalls:* true
 [   17.289329] Unable to handle kernel paging request at virtual address aaaaaace
 [   17.289590] pgd = 9e71c000
 [   17.289696] [aaaaaace] *pgd=00000000
 [   17.289985] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
 [   17.290169] Modules linked in:
 [   17.290391] CPU: 0 PID: 704 Comm: true Not tainted 3.18.0-rc2+ #21
 [   17.290585] task: 9f4dab00 ti: 9e710000 task.ti: 9e710000
 [   17.290747] PC is at ftrace_syscall_enter+0x48/0x1f8
 [   17.290866] LR is at syscall_trace_enter+0x124/0x184

Fix this by ignoring out-of-NR_syscalls-bounds syscall numbers.

Commit cd0980fc8add "tracing: Check invalid syscall nr while tracing syscalls"
added the check for less than zero, but it should have also checked
for greater than NR_syscalls.

Link: http://lkml.kernel.org/p/1414620418-29472-1-git-send-email-rabin@rab.in

Change-Id: Ic7ab546938e4655d73791d4cf371ffd9244c3e4d
Fixes: cd0980fc8add "tracing: Check invalid syscall nr while tracing syscalls"
Cc: stable@vger.kernel.org # 2.6.33+
Signed-off-by: Rabin Vincent <rabin@rab.in>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
power: 8921-htc: Tone down logging

Change-Id: Ia623b3189894141accc2ff6d4b6ec1d0ac6c597b
drivers: input: akm8963: Initialize AKECS_ioctl vars

From m7stockui-3.4.10-gef77362.

Change-Id: Ic1b80479c6a7ca60e19ec741f840379dbf6516ad
Revert "msm: HTC: m7: merge display on commands"

This reverts commit 559a78c0a5a2dcb156f6f4a46e1e9c374cc408bc.

Change-Id: I5d829ad2a913719a6a5f06f94b7cff035480f902
msm: HTC: m7: Update display_on/off

Define .display_on/off members of msm_fb_panel_data and update
m7_display_on/off to accept msm_fb_data_type as a parameter.

Change-Id: I097b2f8e3d335dba28e2e4edf78f07af8cef0991
msm: msm_fb: Handle display_on/off for m7

Change-Id: I69ee33b3a265d3845127b9f61e05df99cc860df8