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>
Merge branch 'cm-11.0' into kk_mkt