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>
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>
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_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>
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>
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>
ARM: hw_breakpoint: Clear breakpoints before enabling monitor mode

The reset value of the BCR, BVR, WCR, and WVR registers are all
UNKNOWN on ARMv7. Unfortunately, reset_ctrl_regs() clears these
registers *after* enabling monitor mode, not before, and so some
implementations may experience UNPREDICTABLE behavior if the
reset values of these registers are non-zero. Clear the
breakpoints before enabling monitor mode so that we don't
experience boot hangs/loops due to breakpoints being enabled
out of reset.

Change-Id: I029fbe40725e803183544ddd6fe40285de4137e8
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
ARM: hw_breakpoint: enable HAVE_HW_BREAKPOINT feature flag

HAVE_HW_BREAKPOINT was disabled temporarily from commit
480a82f59712136b51ee5ca05c4f22c1738010c5. Issue not seen with the
latest kernel hence re-enable the feature and fix merge issue from
previous kernel upgrade.

Change-Id: Ia6e7e8282c848dd73108e4d951b3375bb7caa63c
CRs-Fixed: 460454
Signed-off-by: Jin Hong <jinh@codeaurora.org>
Signed-off-by: Taniya Das <tdas@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>
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>
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>
Merge "gpu: ion: Align va address to biggest buffer size"
Merge "ARM: hw_breakpoint: Clear breakpoints before enabling monitor mode"
Merge "ARM: hw_breakpoint: enable HAVE_HW_BREAKPOINT feature flag"
Merge "gpio: msm-common: Fix irq_set_type for dual edge trigger"
Merge "usb: smd: Call smd_close API from workqueue context"
Merge "board-8960-gpiomux: Correct Primary UART GPIOs suspend configuration"
Merge "media: dvb: Remove write permission of other users to debug-fs"
Merge "msm_fb: Fix adb shell start/stop issue when bypass enabled"
Merge "msm_fb: Enable mdp clock during LVDS init."