ARM: dts: msm: Update device tree with memory map information for 8974 pro

Update the device tree in order to be aligned with the latest memory
map. As the venus, adsp and wconnect images are relocatable, reclaim
the memory that was previously occupied by non relocatable images of
these subsystems.

Change-Id: I553e57412ef6868eac97874f3300982a029fe971
Signed-off-by: Neeti Desai <neetid@codeaurora.org>
rtc: qpnp-rtc: Add NULL pointer checks

In shutdown hook, null pointer check is missing.
So during probe, if RTC H/w is not enabled, rtc
driver data will not be initialized. This patch
adds null pointer checks in shutdown hook.

Change-Id: I1ecdaef8415394c853ce9658ec0da0946f08ad92
CRs-Fixed: 545637
Signed-off-by: Mohit Aggarwal <maggarwa@codeaurora.org>
ASoC: msm: qdsp6: Fix pop noise seen with touch tone during playback

Issue: When a session is opened for playback of the touch tone and
	routed through the COPP, the PBE and IIR params are being
	reconfigured in the COPP every time a session is open.

Rootcause:Configuring the PBE/IIR in the COPP every time a session
           is open.
Fix: Configuring the PBE and IIR param in the COPP one time a session
      is open

CRs-Fixed: 541722
Change-Id: If0d1a8c6893a94186e1c6c2a75432d2f4a89f842
Signed-off-by: Mohammad Johny Shaik <mjshai@codeaurora.org>
Signed-off-by: Satish Kamuju <skamuj@codeaurora.org>
qseecom: Removal of flags and options to protect listener memory

With the new ION design all memory allocated from secure heaps is
secured already at allocation time. This commit effectively rolls
back a change introduced to secure this memory at runtime.

Change-Id: I94bf0a7f6d477b04da7ad6786111f8c970516842
Acked-by: Christian Bolis <cbolis@qti.qualcomm.com>
Signed-off-by: Hariprasad Dhalinarasimha <hnamgund@codeaurora.org>
msm: pil: Enable/disable irq's on subsystem powerup/shutdown

The current implementation enables most IRQs when the subsystems
are registered.

This change disables these irqs for a subsystem when it is being
shutdown and enables them again on powering up. This way, we do
not need to worry about multiple interrupts during a subsystem
restart or having to deal with spurious interrupts when a subsystem
is already shutdown.

Change-Id: I2768e4efc13688ed43b80ded8a5eef98d9d6bf06
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
msm: audio: qdsp6v2: Zero the cfg stack var

Write zeroes into the stack variable cfg to ensure
no previously written stack data is sent to
user-space.

CRs-Fixed: 551574
Change-Id: Ib641c80ebe2acc06396c3f36eb551ed6d3271cea
Signed-off-by: Kenneth Westfield <kwestfie@codeaurora.org>
msm: kgsl: Add more A4XX registers to the snapshot dump list

Add all of the readable registers from the A4XX GPU core to the list
of registers to dump for a snapshot.

Change-Id: Ic0dedbadf369095c1ddf1701b1b09846fc0a81d3
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Shrenuj Bansal <shrenujb@codeaurora.org>
ASoC: msm: Move ASM custom topology data out of Debugfs define

Move variables used for ASM custom topology out of
the debugfs define. ASM custom topology should be
enabled even when debugfs is not.

Change-Id: Ia690269703e71410e7837956315747f8ec2bee17
CRs-fixed: 551711
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
ASoC: msm: Add argument to config_debug_fs definition

Add argument name missing from config_debug_fs
definition when debugfs not enabled.

Change-Id: If8a5299d06c474214ac2521401fb6a29782c4b11
CRs-fixed: 551711
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
ASoC: msm: Fix for passing correct data to userspace

The Copy_to_user function copies the whole frame structure
to the userspace. Only len bytes should be copied.
As the whole frame is being copied
(HPCM_MAX_VOC_PKT_SIZE bytes) the uninitialized bytes
in the buffer will be disclosed to the calling
user-space process.

Change-Id: I7d7f58d358aaf56d91a79cfe95c04d937b48da53
Signed-off-by: Vicky Sehrawat <vickys@codeaurora.org>
ARM: dts: msm: add rtb to device tree for 8092

Add support to device tree node to enable RTB logging on mpq8092.
RTB logging provides useful debug information by logging events to
uncached buffer which can be processed from ramdumps in case of device
reset.

Change-Id: I5db4571933fd1ed1ee7d3ecf20a1c9c9b856d8a7
Signed-off-by: Vignesh Radhakrishnan <vigneshr@codeaurora.org>
ARM: dts: msm: add GT915 touchscreen support for skuab

Add new touchscreen support for skuab

Change-Id: I509552383e7aa877a22cddc1ee1e7ccd8291201a
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
defconfig: msm8610: enable Goodix touchscreen driver

Enable Goodix touchscreen driver to support new TP on skuab

Change-Id: If057ce4ed907e7a627d214872cb9b51ddd5c67ef
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
pinctrl: fix pinconf_dbg_config_write return type

Have pinconf_dbg_config_write() return a ssize_t. This fixes the following
compilation warning:

  drivers/pinctrl/pinconf.c:617:2: warning: initialization from incompatible pointer type [enabled by default]
  drivers/pinctrl/pinconf.c:617:2: warning: (near initialization for ‘pinconf_dbg_pinconfig_fops.write’) [enabled by default]

Change-Id: Iff411ac803e46070fafce5c2d23626c890856bf2
Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net>
Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Git-commit: 3b59e432ec9c093311e0ad057e330e04feb79007
Git-Repo: git://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
msm: vidc: Bug fix in instance clean-up

When close is called directly without proper state operations,
then driver tries to clean all V4L2 framework memory. When driver
calls queue_release, it tries to call stream_off again. This
causes driver to re-enter the state operations. This change
prevents driver to re-enter the state diagram.

Change-Id: I6df248792fca78fe743bead311fa1cec61a6bb79
Signed-off-by: Praneeth Paladugu <ppaladug@codeaurora.org>
msm: 8x10 BKE settings patch

For the display we limit BW to 300MBps when the request is 800MBps
VFE at P3, MDP DMA at P2, MDP PPP at P1

CRs-Fixed: 506183

Change-Id: Ie00ad942d8d78be07ad4e90ff6f4fe6247d2743a
Signed-off-by: Saurabh Saxena <ssaxen@codeaurora.org>
msm: camera: Return current lens position in actuator driver

Actuator user space driver requires lens position after move focus
call returns. Return lens position as part cfg params for move focus
ioctl.

Change-Id: Ie684e898959a8edfd2a919b69d4607497b998ac4
Signed-off-by: Sreesudhan Ramakrish Ramkumar <srramku@codeaurora.org>
ASoC: apq8084: avoid suspend when audio is active

Update ignore_suspend flag of DAI link as ASOC core triggers
suspend if this flag is not set. Set ignore_suspend for all
input and output widgets to avoid power down and power up
during suspend when widgets and DAIs are in use

Change-Id: I13921f81c5705d8508ee1de74dbbbb82f21bf786
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
ARM: dts: msm: Add a2 bam irq to mpm bypass list.

Modem to Apps interrupt HWIRQ61 has to be on the bypass list,
to allow the Apps Subsytem to release XO clock at Suspend.
When the device is in XO Shutdown, Modem is also in Sleep,
and the interrupt will not be triggered.

Signed-off-by: Karthik Parsha <kparsha@codeaurora.org>
Change-Id: I853182cd11d5c1147734c109ce0da6ba93bb073f
bif: bif-core: add BIF object matching support

Update the BIF slave matching criteria so that BIF consumer
drivers can find BIF slaves which contain BIF objects of a
certain type.  Also add functions which allow consumers to get
handles for the BIF objects which match specified search
criteria.

Change-Id: Ice7042ecb3829db8f5601d91940c5f7bef383d3d
Signed-off-by: David Collins <collinsd@codeaurora.org>