Revert "Revert "msm_fb: display: remove background invert alpha option for alpha drop pipe""

This reverts commit 69a761dbaadee12ae802e993288b4d899da5110b.
gpu: ion: Align va address to biggest buffer size

Align the virtual address to the max buffer size to
allow IOMMU mappings at the biggest buffer size.

Change-Id: I74ba665c1782e2f0631274766c5caeeb192224e0
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
msm: ipc_logging: Update function stubs

If IPC Logging is not enabled, but is still used, then the stubs will be
multiply defined because they are not static inline.

Make the stubs static inline.

CR-fixed: 456106
Change-Id: Id39c8f27acb952228b40012726e6b761defd16fb
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
Signed-off-by: Arun Kumar Neelakatam <aneela@codeaurora.org>
msm: vidc: Fix codec config frame with EOS flag issue

This change fixes the issue with improper handling of
codec config frame with eos flag in smooth streaming
scenario.

CRs-fixed: 467211
Change-Id: Iafd0a1a5a9073458fd139ed5845585747e51be8a
Signed-off-by: Deepak Verma <dverma@codeaurora.org>
msm_fb: display: exit properly when rotator max session reached

When rotator session reach maximum, it should exit without calling
put_img since no get_img had been called.

CRs-fixed: 466462
Change-Id: I951570227ebd81da6dad19c1b897cde84f8d0451
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
gpio: msm-common: Fix irq_set_type for dual edge trigger

msm_gpio_update_dual_edge_pos() function will set correct
trigger type based on the current gpio level in case that
the interrupt type is both edge trigger type (IRQF_TRIGGER_RISING
|IRQF_TRIGGER_FALLING). Later again we set the msm_gpio_irq_extn
set_type with mpm to set it as IRQF_TRIGGER_RISING.

Avoid configuring the type with mpm if it is dual edge trigger.

CRs-Fixed: 421325
Change-Id: I049362e7f7eacdeab13d4c6b190262c015419efd
Signed-off-by: Taniya Das <tdas@codeaurora.org>
usb: smd: Call smd_close API from workqueue context

smd_close API cannot be called from ATOMIC context, hence move
it from interrupt context to workqueue context.

Change-Id: I9e8ca633f170b48b82f1ead50068b8c7fde5ccff
CRs-Fixed: 419610
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
board-8960-gpiomux: Correct Primary UART GPIOs suspend configuration

Currently Primary UART GPIos (93, 94, 95, 96) are having suspend
configuration where functional mode is set as 2 (UART Mode). These
GPIOs are required to be in GPIO mode when those are not used for
UART functionality. Hence correct these GPIOs suspend configuration
by changing functional mode from 2 (UART Mode ) to 0 ( GPIO Mode ).

CRs-Fixed: 467671
Change-Id: I98b101a665a0d6398007be7f0b13007cc71cffc3
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
media: dvb: Remove write permission of other users to debug-fs

There is no need for the dvb debugfs nodes to be world-writable.
Change them to be read-only for other users.

CRs-Fixed: 454805
Change-Id: I56340d5c0431206d81d44c835d558dbb48b24b63
Signed-off-by: Hamad Kadmany <hkadmany@codeaurora.org>
msm_fb: Fix adb shell start/stop issue when bypass enabled

Currently when 2/3/4 layer bypass is enabled, doing a adb shell
stop/start is failing overlay and composition happens through
GPU. Fix this issue by proper overlay configuration during this
scenario.

Change-Id: Ia04f1839bf80ed552671e48445af63a4dcd6bdfd
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
msm_fb: Enable mdp clock during LVDS init.

Currently on 8064 CDP, MDP clock is off when configuring LVDS
PHY registers during boot up. This is causing display not to
come up. Enable MDP clock during the PHY configuration during
LVDS on and off.

CRs-fixed: 455620
Change-Id: Ie2b607591e936e9ab63d50cd0e2c8ba981aae6a2
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
msm: camera: Check for valid pcam before using it

When event notify is called, check if pcam is valid or not
to avoid NULL pointer deferences.

CRs-Fixed: 462215
Change-Id: I78590c06ff5132dce0a629e8496d11360201aafc
Signed-off-by: Raju P.L.S.S.S.N <rplsssn@codeaurora.org>
msm: camera: Set event data stat buffer to NULL after freeing

Set stats buff event data to NULL after dequeuing & freeing
the event to avoid possibility of freeing the data again.

Change-Id: Iba069ff3d118b276694ebfa04af2b03e454a8583
CRs-Fixed: 463130
Signed-off-by: Raju P.L.S.S.S.N <rplsssn@codeaurora.org>
mach-msm:ipc-socket: Remove @hide from !check_permissions

No need to skip this if then check anymore

Change-Id: If85504666bb0db11a20862a976b4dd8f12c5fbc4
Signed-off-by: bmc08gt <bmc08gt.teamb00sted@gmail.com>
video: msm: re-enable framebuffer splash screen

Also fix the big scary warning it gives (thanks detule!)

Change-Id: Ide4f92f209bccb4eb8b252ffe75a948f008687b5
d2: Fix and consolidate persistent_ram code

 * Move persistent_ram back to the end of lowmem. For some reason it is
   getting clobbered randomly at it's current location.
 * Also consolidate the code into devices-8960 where it can be shared.

Change-Id: Ie81670df15591b4c7505b0b356d04fca63bcac9e