d2: wifi: pass ipv6 in suspend

fixes no notifications on ip6 networks

Change-Id: Ic2b93d67eba92be90a9b403f27d5a0ab97446cf9
d2: turn on IPC Router Security and IPC Logging

Logcat---
Fixes I/irsc_util(  189): irsc_feed_config: Security config ioctl failed

and

dmesg---
msm_ipc_router_init: Unable to create IPC logging for IPC RTR
msm_ipc_router_ipc_log_init: Unable to create IPC logging for Req/Resp
msm_ipc_router_ipc_log_init: Unable to create IPC logging for Indications
bam_dmux_init : unable to create IPC Logging Context

Change-Id: Ice7e27a5daf6700c51fd739fb9ca450c34612dc4
Merge "d2: wifi: pass ipv6 in suspend" into cm-11.0
Merge "d2: turn on IPC Router Security and IPC Logging" into cm-11.0
bluetooth: update bluetooth-power platform data

Update bluetooth power driver to support both device tree and
board specific platform data to power on bluetooth chipset.

Current driver supports only gpio data from the device node.
Now the driver first checks for device tree node and if it
does not exist then checks for the platform data from the
board file.

Updated the platform data for the driver to provide all the
required vregs and gpio data to power on the bluetooth
chipset.

Change-Id: Ie71115ad7173fc527e46b334a8b548762b40aa46
Signed-off-by: Ram Mohan Korukonda <rkorukon@codeaurora.org>
Signed-off-by: Sungjun Park <sjpark@codeaurora.org>
msm_rmnet: Fix potential memory corruption

Usage of legacy string manipulation function sprintf could lead to
memory corruption as the number of bytes to be written to the
destination is not bounded. Replace sprintf with snprintf where the
number of bytes to be written is explicitly specified.

CRs-fixed: 672202
Change-Id: I1788d655f048124c6b7cccee4345d8239743ada8
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
msm_rmnet_sdio: Fix potential memory corruption

Usage of legacy string manipulation function sprintf could lead to
memory corruption as the number of bytes to be written to the
destination is not bounded. Replace sprintf with snprintf where the
number of bytes to be written is explicitly specified.

CRs-fixed: 672202
Change-Id: Ic26bea1ddf9570a4970fc8c4373b066aa385e427
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
msm: msm_bus: Fix memory leak during RPM transaction

This is a serious bug that eventually cripples the system due to
lost memory.

CRs-Fixed: 442381
Change-Id: If4d33b35475a33b1602a1d923031345b47af963e
Signed-off-by: Michael Bohan <mbohan@codeaurora.org>
Signed-off-by: Sana Venkat Raju <c_vsana@codeaurora.org>
cfg80211: unblock user hint when cfg80211_regdom is intersected

If the driver is loaded when cfg80211_regdom is intersected then
user hint will fail for the first time since cfg80211 does not
have a check to see if cfg80211_regdom is intersected. Add
a check to see if cf80211_regdom is intersected and allow the
user hint to be processed.

Change-Id: Iba9cdd32470e29d35d3bb35012eb404b7c78d601
CRs-Fixed: 639538
Signed-off-by: Mihir Shete <smihir@codeaurora.org>
msm_fb: display: reference count base pipe free in dsi and lcdc

During dsi off or lcdc off, base pipe could be freeed if fb device is
closed. Since base pipe allocation and free are managed through
reference counting api functions, so those free functions api should
be called.

Change-Id: I210716a590cde87ee254184a42d9df38c8012ff6
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
media: dvb: check filter is valid for fullness callback

In PULL mode, all relevant filters' buffer space is checked
to ensure sufficient space or otherwise blocking untill it
becomes available. As callback might sleep it is called without
holding any locks. So at this time, just before the callback executes,
the filter might have been closed by a different thread.
To prevent invalid access, verify in the callback that filter is still
valid.

Change-Id: Ie07ac5d17942ef39d12e4eed3078e382c956fe2e
Signed-off-by: Gilad Broner <gbroner@codeaurora.org>
msm_fb: display: turn off lcdc timing generator when splash is done

The lcdc timing generator is configured by boot loader for splash
screen. TG should be disabled when kernel is about to configure it
with its own parameters. Otherwise, mdp may hang or underrun while TG
is still active.

Change-Id: Ia2b2947c2759975d02e718edf306c86403bc6d33
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
msm_fb: display: fix pipe solid fill initialization issue

Currently solid fill mode is not properly initialized. Only the base
pipe allocated for the interface is supposed to be initialized before
interface timing generator is turned on. However, the solidfill_init
function initializes all pipes and this could cause underruns on the
pipes already being used.

Change-Id: I6be589c188a2dc285b5dc4a942840c603af6d1be
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
d2: enable qcom crypto device

Change-Id: I8159ffb453ad29593f85d50ecec4e853bcedeecf
d2: enable shit at random for fun
HID: input: generic hidinput_input_event handler

The hidinput_input_event() callback converts input events written from
userspace into HID reports and sends them to the device. We currently
implement this in every HID transport driver, even though most of them do
the same.

This provides a generic hidinput_input_event() implementation which is
mostly copied from usbhid. It uses a delayed worker to allow multiple LED
events to be collected into a single output event.
We use the custom ->request() transport driver callback to allow drivers
to adjust the outgoing report and handle the request asynchronously. If no
custom ->request() callback is available, we fall back to the generic raw
output report handler (which is synchronous).

Drivers can still provide custom hidinput_input_event() handlers (see
logitech-dj) if the generic implementation doesn't fit their needs.

Conflicts:
	drivers/hid/hid-input.c

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Michael Wright <michaelwr@google.com>
Change-Id: I89ccc3f675b3e8a7bbd812a6ebe12588d737cfd6
cpufreq: Avoid using global variable total_cpus

The change is to compile on kernels where cpufreq stats are compiled as
a module (CONFIG_CPU_FREQ_STAT=m), because total_cpus is not exported for
module use.

Reported-By: Emilio López <elopez93@gmail.com>
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
Change-Id: I4f3c74f0fac5e8d9449655b26bf3b407b0fe4290
f2fs: resync with upstream 3.4 branch (forced update)

Change-Id: I1e7f8893f4330e8084827568327ba5e4eafc684c