Update to 3.0 KGSL Driver (1/2)

Change-Id: I3ffceffce6c049f69e1f2d014ec0b4ab7f242ede
Update to 3.0 KGSL Driver (2/2)

Change-Id: If277ab09cafdf4d1cfc371d1541ecc1ddef2b42e
msm_fb : Add support for Yamato format (our adreno200 gpu) cherry-pick commit c13dd07
update MDP header to latest version
update video decoder to latest versions
Fix bluetooth tethering (Sqadzone,androidmeda)
Add frontswap

Change-Id: I8a84bf68eba1891371f2d9909537f1fda528da40
Backport calibrate from 3.0 kernel
wlan: Add a separate header for BCM platform device
CodeAurora timer.c patch
vidc: vdec: Set correct divx codec type

Signed-off-by: Ron <cips173@gmail.com>
msm: vidc: Remove vcd restriction of duplicate input buffer queue

VCD previously had a limitation of not allowing two consecutive
encode_frame calls with the same buffer. This was primarily due to the
handling of buffer_entry elements in the buffer pool.  This commit
removes this restriction by maintaining an internal buffer_entry element
that VCD keep track of.

Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
(cherry picked from commit 794a9dd1b5c22492ef2ad76e49073c0bc0a2b8f9)

Change-Id: Iadbcae197f4627218440bdf300e43e04e888eaaf
Signed-off-by: Ramakrishna Prasad N <crpn@codeaurora.org>
msm: board-msm7x27a: Increase Idle timeout

For 7x27a and 7x27, clocks are controlled by modem. To improve stability,
reduce number of interactions to modem to turn on and off GPU clocks.

Change-Id: Ia335960a6a139cd2fbe787d1dbe910e8e7a66f3f
CRs-Fixed: 339805
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>
msm_fb: display: Wait for VSYNC if HDMI connected

Before unsetting and reallcating the pipes, a wait of
one VSYNC is required to avoid mixer getting same pipe
allocated. But in case the HDMI cable is disconnected,
external VSYNC would not be received and the primary
display would not respond. To avoid this, wait during
unset is done only if the HDMI cable is connected.

CRs-fixed: 352950
Change-Id: I416dfbdf5c6d82023781cc8fdbfdb0021898fd18
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
Backport xt_qtaguid socket (fixed batry stats)
updated vidc headers
ipsec: be careful of non existing mac headers

Niccolo Belli reported ipsec crashes in case we handle a frame without
mac header (atm in his case)

Before copying mac header, better make sure it is present.

Bugzilla reference:  https://bugzilla.kernel.org/show_bug.cgi?id=42809

Reported-by: Niccolò Belli <darkbasic@linuxsystems.it>
Tested-by: Niccolò Belli <darkbasic@linuxsystems.it>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

CRs-Fixed: 344300
Signed-off-by: Jin Hong <jinh@codeaurora.org>
(cherry picked from commit 6329bf0a03811f4644a4c8d50bf241f6db6f19b5)

Conflicts:

	include/linux/skbuff.h

Change-Id: I062e7540bdeb8b2fa1c7b57e8a6d07a01b95d0a6
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>
Bluetooth: uart-ldisc: Fix memory leak

This is a partial, self-contained, minimal backport of commit
797fe796c4335b35d95d5326824513befdb5d1e9 upstream which fixes the memory
leak:

Bluetooth: uart-ldisc: Fix memory leak and remove destruct cb

We currently leak the hci_uart object if HCI_UART_PROTO_SET is never set
because the hci-destruct callback will then never be called.  This fix
removes the hci-destruct callback and frees the driver internal private
hci_uart object directly on tty-close. We call hci_unregister_dev() here
so the hci-core will never call our callbacks again (except destruct).
Therefore, we can safely free the driver internal data right away and
set the destruct callback to NULL.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Bluetooth: Fix l2cap conn failures for ssp devices

commit 18daf1644e634bae951a6e3d4d19d89170209762 upstream

Commit 330605423c fixed l2cap conn establishment for non-ssp remote
devices by not setting HCI_CONN_ENCRYPT_PEND every time conn security
is tested (which was always returning failure on any subsequent
security checks).

However, this broke l2cap conn establishment for ssp remote devices
when an ACL link was already established at SDP-level security. This
fix ensures that encryption must be pending whenever authentication
is also pending.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Tested-by: Daniel Wagner <daniel.wagner@bmw-carit.de>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
fix rpcrouter misspellings - suggested from css771 - might