msm: ocmem: Fix an issue with turning off the memory

Fix an incorrect check in the free() path that resulted in
memory macros not being turned off.

Change-Id: I2ea96e4297c0b47eac82f626f89faadbba6f0466
Signed-off-by: Naveen Ramaraj <nramaraj@codeaurora.org>
input: touchscreen: synaptics v1.1

- Add fwu_go_nogo function in synaptics_fw_update.c
- Add BTN_TOUCH support in synaptics_i2c_rmi4.c
- Add List check in synaptics_i2c_rmi4.c

Change-Id: I8cb776d5b3d20bdee5036cfe0dbcb9bbaa8bf6bd
[amaloche@codeaurora.org: Subject modified from "v1.1"
 - Removed reg_access & fw_updater files due to improper license
 - Modified commit text to reflect file changes]
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
input: synaptics_i2c_rmi4: Add TS support

Add synaptics driver support and firmware update support
for synaptics touch panel, this patch also adds support
for virtual keys.  Corrects issues in "first commit" and
"v1.1" of open source code.

Change-Id: I78dcc2f540ca78e192b4570e414a8802e8982945
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
input: synaptics_fw_update: Add sysfs entry to expose Config ID

Config ID is used to differentiate between different versions of
configuration data on the panel and is needed for debugging.

Change-Id: Iaa66ff8e328d0480d2e4ce4fc0d9f57434dc7b86
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
ocmem: Remove BR clk management

LPASS will keep the BR clock ON at all times, thus HLOS does not
need to explicitly manage this clock anymore.

Change-Id: I53bb1ede0e6b7dead2b97e8fb40d928e62ee873f
Signed-off-by: Neeti Desai <neetid@codeaurora.org>
msm: cpufreq: make the gov stop part fully atomic

In the function cpufreq_governor_dbs, the case CPUFREQ_GOV_STOP
is not completely atomic. The removal of sysfs is outside the
critical path. If a START/STOP done frequently from user space
then there is chance of adding the sysfs interface before removal.
This creates a warning from sysfs saying creating an already
existing entry.

Also once it fails to create, cpufreq_governor_dbs returns with
error code. The dbs_enable value is incremented which is not
rolled back and cpufreq core tries to set the old
governor. This might create further problems.

Hence the removal of sysfs entry should happen in the critical
path.

CRs-fixed: 440969
Change-Id: I98891756caf2ce0b85e39e9b4f58034af1ed97ce
Signed-off-by: Venkat Devarasetty <vdevaras@codeaurora.org>
Revert "mm: cma: on movable allocations try MIGRATE_CMA first"

This reverts commit b5662d64fa5ee483b985b351dec993402422fee3.

Using CMA pages first creates good utilization but has some
unfortunate side effects. Many movable allocations come from
the filesystem layer which can hold on to pages for long periods
of time which causes high allocation times (~200ms) and high
rates of failure. Revert this patch and use alternate allocation
strategies to get better utilization.

Change-Id: I917e137d5fb292c9f8282506f71a799a6451ccfa
CRs-Fixed: 452508
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
msm: camera: fix preview hang issue when recording is stopped

During stream off, user-space context turns off stream specific
write masters and waits for the ack triggered from next reg update.
But due to incorrect state maintenance this ack never reaches the
waiting context. Fix this by using proper state checks.

Change-Id: Iab98df7210aa0d1e8e662dc39b50383462043937
Signed-off-by: Kevin Chan <ktchan@codeaurora.org>
msm: camera: Fix write master reload logic

ISP write master needs to be resetted before starting.
During stop, the write master should be not resetted
unless the write master is completely stopped.
Add change to trigger reset during start only.

Change-Id: I703d73ea4abc09d159f6889ab9fb69e8ea0df439
Signed-off-by: Kevin Chan <ktchan@codeaurora.org>
msm: camera: Use hardware specific DMI register address

Add field to store hardware specific DMI register address
to support both VFE 4.0 and 3.2 hardware

Change-Id: If79bb2208297127e4a45ae827ab03c39edd1f62a
Signed-off-by: Kevin Chan <ktchan@codeaurora.org>
msm: camera: Refactor ISP snapshot buffer management

During burst mode, when ISP need to capture one burst image.
Only one buffer is allocated. Both ping pong buffer
should be configured to the same address.
Change the buffer management code flow to fetch new buffer
when there are free buffers avaliable.

Change-Id: I5b7c19e1986bd670904fa326943699a89f00d4b8
Signed-off-by: Kevin Chan <ktchan@codeaurora.org>
tspp: improve tspp_open_stream/tspp_close_stream behavior

The TSPP driver's kernel API supports opening and closing a TSPP stream
using the tspp_open_stream/tspp_close_stream API functions. This commit
fixes a few minor issues with the behavior and usage of this API.

tspp_open_stream and tspp_close_stream were fixed to connect/disconnect
the appropriate TSIF source based on the TSIF reference count.

The call to tspp_close_stream from within tspp_close_channel was removed,
since a kernel driver that uses the TSPP driver API is expected to call
tspp_close_stream explicitly, and not rely on the TSPP driver to close
the stream implicitly when the channel is closed.

An ioctl was added to allow user-space application to close the stream.

Change-Id: If49b440d9d83c8bba54aeabc18e8f06b3cc11b3e
Signed-off-by: Liron Kuch <lkuch@codeaurora.org>
Merge "msm: cpufreq: make the gov stop part fully atomic"
defconfig: msm9625: enable filter table for ebtables.

Enable filter table for ebtables to support access restrictions
for SSID2 clients.

Change-Id: Idcf0a2118873cc2ab73efcbbda7d4730e31398d6
Signed-off-by: Niranjan Reddy Dumbala <ndumba@codeaurora.org>
media: dvb: mpq: Secure demux API updates

Add support for the following features in the secure demux API:
* Setting TS output format for recording filters
* PES counters reported by the secure demux
* Filter flags support - CRC checking for section can be disabled

Change-Id: Iacd9a88c1b89839f2d28cb5109a46323e039c615
Signed-off-by: Gilad Broner <gbroner@codeaurora.org>
Merge "msm: camera: fix preview hang issue when recording is stopped"
Merge "msm: camera: Fix write master reload logic"
Merge "msm: camera: Use hardware specific DMI register address"
Merge "msm: camera: Refactor ISP snapshot buffer management"
Merge "defconfig: msm9625: enable filter table for ebtables."